* added optional argument to command service * Fixed crash when optional argument is not provided * Updated argument description * fixed lint error * Fix isort error * switched to use dict for optional field instead of json string * switched to use ATTR_PAYLOAD * fixed test * actually fixed test
20 lines
454 B
Python
20 lines
454 B
Python
"""Constants used for LG webOS Smart TV."""
|
|
DOMAIN = "webostv"
|
|
|
|
DEFAULT_NAME = "LG webOS Smart TV"
|
|
|
|
ATTR_BUTTON = "button"
|
|
ATTR_COMMAND = "command"
|
|
ATTR_PAYLOAD = "payload"
|
|
ATTR_SOUND_OUTPUT = "sound_output"
|
|
|
|
CONF_ON_ACTION = "turn_on_action"
|
|
CONF_SOURCES = "sources"
|
|
|
|
SERVICE_BUTTON = "button"
|
|
SERVICE_COMMAND = "command"
|
|
SERVICE_SELECT_SOUND_OUTPUT = "select_sound_output"
|
|
|
|
LIVE_TV_APP_ID = "com.webos.app.livetv"
|
|
|
|
WEBOSTV_CONFIG_FILE = "webostv.conf"
|