Home Assistant Unofficial Reference
2024.12.1
models.py
Go to the documentation of this file.
1
"""The ws66i integration models."""
2
3
from
__future__
import
annotations
4
5
from
dataclasses
import
dataclass
6
7
from
pyws66i
import
WS66i
8
9
from
.coordinator
import
Ws66iDataUpdateCoordinator
10
11
12
@dataclass
13
class
SourceRep
:
14
"""Different representations of the amp sources."""
15
16
id_name: dict[int, str]
17
name_id: dict[str, int]
18
name_list: list[str]
19
20
21
@dataclass
22
class
Ws66iData
:
23
"""Data for the ws66i integration."""
24
25
host_ip: str
26
device: WS66i
27
sources: SourceRep
28
coordinator: Ws66iDataUpdateCoordinator
29
zones: list[int]
homeassistant.components.ws66i.models.SourceRep
Definition:
models.py:13
homeassistant.components.ws66i.models.Ws66iData
Definition:
models.py:22
core
homeassistant
components
ws66i
models.py
Generated by
1.9.1