hass-core/homeassistant/components/webostv/const.py
David Zhu 6f4829c390
Add webostv payload option to command service (#36164)
* 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
2020-05-27 15:51:39 +02:00

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"