Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants used for LG webOS Smart TV."""
2
3
import
asyncio
4
5
from
aiowebostv
import
WebOsTvCommandError
6
from
websockets.exceptions
import
ConnectionClosed, ConnectionClosedOK
7
8
from
homeassistant.const
import
Platform
9
10
DOMAIN =
"webostv"
11
PLATFORMS = [Platform.MEDIA_PLAYER]
12
DATA_CONFIG_ENTRY =
"config_entry"
13
DATA_HASS_CONFIG =
"hass_config"
14
DEFAULT_NAME =
"LG webOS Smart TV"
15
16
ATTR_BUTTON =
"button"
17
ATTR_CONFIG_ENTRY_ID =
"entry_id"
18
ATTR_PAYLOAD =
"payload"
19
ATTR_SOUND_OUTPUT =
"sound_output"
20
21
CONF_ON_ACTION =
"turn_on_action"
22
CONF_SOURCES =
"sources"
23
24
SERVICE_BUTTON =
"button"
25
SERVICE_COMMAND =
"command"
26
SERVICE_SELECT_SOUND_OUTPUT =
"select_sound_output"
27
28
LIVE_TV_APP_ID =
"com.webos.app.livetv"
29
30
WEBOSTV_EXCEPTIONS = (
31
OSError,
32
ConnectionClosed,
33
ConnectionClosedOK,
34
ConnectionRefusedError,
35
WebOsTvCommandError,
36
TimeoutError,
37
asyncio.CancelledError,
38
)
homeassistant.const
Definition:
const.py:1
core
homeassistant
components
webostv
const.py
Generated by
1.9.1