Improve LG webosTV (#34147)

* Move consts to const, general cleanup

* Add unique id

* Add default icon

* Set supported features based on sound output

* Update homeassistant/components/webostv/media_player.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Set device class

* Add software_info to client mock

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Aidan TimsonandMartin Hjelmare authored and GitHub committed 2020-04-14 20:26:13 +02:00
1 parent ba394fd2aa
commit 18478ebd05
4 files changed
+69 -34

No files matched your search

+17 -2
View File
@@ -1,4 +1,19 @@
"""Constants used for WebOS TV."""
"""Constants used for LG webOS Smart TV."""
DOMAIN = "webostv"
DEFAULT_NAME = "LG webOS Smart TV"
ATTR_BUTTON = "button"
ATTR_COMMAND = "command"
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"
ATTR_SOUND_OUTPUT = "sound_output"
WEBOSTV_CONFIG_FILE = "webostv.conf"