34 lines
745 B
Python
34 lines
745 B
Python
|
"""Define Hunter Douglas data models."""
|
||
|
from __future__ import annotations
|
||
|
|
||
|
from dataclasses import dataclass
|
||
|
from typing import Any
|
||
|
|
||
|
from aiopvapi.helpers.aiorequest import AioRequest
|
||
|
|
||
|
from .coordinator import PowerviewShadeUpdateCoordinator
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class PowerviewEntryData:
|
||
|
"""Define class for main domain information."""
|
||
|
|
||
|
api: AioRequest
|
||
|
room_data: dict[str, Any]
|
||
|
scene_data: dict[str, Any]
|
||
|
shade_data: dict[str, Any]
|
||
|
coordinator: PowerviewShadeUpdateCoordinator
|
||
|
device_info: PowerviewDeviceInfo
|
||
|
|
||
|
|
||
|
@dataclass
|
||
|
class PowerviewDeviceInfo:
|
||
|
"""Define class for device information."""
|
||
|
|
||
|
name: str
|
||
|
mac_address: str
|
||
|
serial_number: str
|
||
|
firmware: dict[str, Any]
|
||
|
model: str
|
||
|
hub_address: str
|