* Reformat saved media data/ fix load + save helpers
* Add url constant
* Reformat saved media data
* Add tests for media data
* Refactor
* Revert deleted lines
* Set attrs after checking for lock
* Patch load games.
* remove unneeded imports
* fix tests
* Correct condition
* Handle errors with loading games
* Correct condition
* Fix select source
* add test
* Remove unneeded vars
* line break
* cleanup loading json
* remove test
* move check for dict
* Set games to {}
16 lines
453 B
Python
16 lines
453 B
Python
"""Constants for PlayStation 4."""
|
|
ATTR_MEDIA_IMAGE_URL = 'media_image_url'
|
|
CONFIG_ENTRY_VERSION = 3
|
|
DEFAULT_NAME = "PlayStation 4"
|
|
DEFAULT_REGION = "United States"
|
|
DEFAULT_ALIAS = 'Home-Assistant'
|
|
DOMAIN = 'ps4'
|
|
GAMES_FILE = '.ps4-games.json'
|
|
PS4_DATA = 'ps4_data'
|
|
|
|
COMMANDS = (
|
|
'up', 'down', 'right', 'left', 'enter', 'back', 'option', 'ps')
|
|
|
|
# Deprecated used for logger/backwards compatibility from 0.89
|
|
REGIONS = ['R1', 'R2', 'R3', 'R4', 'R5']
|