Files
core/homeassistant/components/webostv/const.py
T

33 lines
702 B
Python

"""Constants for the LG webOS TV integration."""
import asyncio
import logging
import aiohttp
from aiowebostv import WebOsTvCommandError
from homeassistant.const import Platform
DOMAIN = "webostv"
LOGGER = logging.getLogger(__package__)
PLATFORMS = [Platform.MEDIA_PLAYER]
DEFAULT_NAME = "LG webOS TV"
ATTR_PAYLOAD = "payload"
ATTR_SOUND_OUTPUT = "sound_output"
CONF_ON_ACTION = "turn_on_action"
CONF_SOURCES = "sources"
LIVE_TV_APP_ID = "com.webos.app.livetv"
WEBOSTV_EXCEPTIONS = (
ConnectionResetError,
WebOsTvCommandError,
aiohttp.ClientConnectorError,
aiohttp.ServerDisconnectedError,
aiohttp.WSMessageTypeError,
asyncio.CancelledError,
asyncio.TimeoutError,
)