1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-30 12:14:20 +01:00
Files
2026-04-30 21:14:48 +02:00

33 lines
618 B
Python

"""The ws66i integration models."""
from dataclasses import dataclass
from pyws66i import WS66i
from homeassistant.config_entries import ConfigEntry
from .coordinator import Ws66iDataUpdateCoordinator
@dataclass
class SourceRep:
"""Different representations of the amp sources."""
id_name: dict[int, str]
name_id: dict[str, int]
name_list: list[str]
@dataclass
class Ws66iData:
"""Data for the ws66i integration."""
host_ip: str
device: WS66i
sources: SourceRep
coordinator: Ws66iDataUpdateCoordinator
zones: list[int]
type Ws66iConfigEntry = ConfigEntry[Ws66iData]