mirror of
https://github.com/home-assistant/core.git
synced 2026-08-07 13:55:32 +01:00
33 lines
719 B
Python
33 lines
719 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, Platform.SWITCH]
|
|
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,
|
|
)
|