24 lines
548 B
Python
24 lines
548 B
Python
"""LinkPlay constants."""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from linkplay.controller import LinkPlayController
|
|
|
|
from homeassistant.const import Platform
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
|
|
@dataclass
|
|
class LinkPlaySharedData:
|
|
"""Shared data for LinkPlay."""
|
|
|
|
controller: LinkPlayController
|
|
entity_to_bridge: dict[str, str]
|
|
|
|
|
|
DOMAIN = "linkplay"
|
|
SHARED_DATA = "shared_data"
|
|
SHARED_DATA_KEY: HassKey[LinkPlaySharedData] = HassKey(SHARED_DATA)
|
|
PLATFORMS = [Platform.BUTTON, Platform.MEDIA_PLAYER]
|
|
DATA_SESSION = "session"
|