core/homeassistant/components/hunterdouglas_powerview/model.py

34 lines
745 B
Python
Raw Normal View History

"""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