2020-04-14 23:04:06 +00:00
|
|
|
"""Constants for Bravia TV integration."""
|
2021-07-03 13:37:54 +00:00
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import Final
|
|
|
|
|
2023-01-24 13:31:09 +00:00
|
|
|
from homeassistant.backports.enum import StrEnum
|
|
|
|
|
2021-07-03 13:37:54 +00:00
|
|
|
ATTR_CID: Final = "cid"
|
|
|
|
ATTR_MAC: Final = "macAddr"
|
|
|
|
ATTR_MANUFACTURER: Final = "Sony"
|
|
|
|
ATTR_MODEL: Final = "model"
|
|
|
|
|
2022-10-05 08:24:52 +00:00
|
|
|
CONF_CLIENT_ID: Final = "client_id"
|
|
|
|
CONF_NICKNAME: Final = "nickname"
|
2022-09-23 13:03:43 +00:00
|
|
|
CONF_USE_PSK: Final = "use_psk"
|
2021-07-03 13:37:54 +00:00
|
|
|
|
|
|
|
DOMAIN: Final = "braviatv"
|
2022-10-05 08:24:52 +00:00
|
|
|
LEGACY_CLIENT_ID: Final = "HomeAssistant"
|
|
|
|
NICKNAME_PREFIX: Final = "Home Assistant"
|
2023-01-24 13:31:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SourceType(StrEnum):
|
|
|
|
"""Source type for Sony TV Integration."""
|
|
|
|
|
|
|
|
APP = "app"
|
|
|
|
CHANNEL = "channel"
|
|
|
|
INPUT = "input"
|