mirror of
https://github.com/home-assistant/core.git
synced 2026-02-21 18:38:17 +00:00
21 lines
483 B
Python
21 lines
483 B
Python
"""Models for the mystrom integration."""
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
from pymystrom.bulb import MyStromBulb
|
|
from pymystrom.pir import MyStromPir
|
|
from pymystrom.switch import MyStromSwitch
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
|
|
|
type MyStromConfigEntry = ConfigEntry[MyStromData]
|
|
|
|
|
|
@dataclass
|
|
class MyStromData:
|
|
"""Data class for mystrom device data."""
|
|
|
|
device: MyStromSwitch | MyStromBulb | MyStromPir
|
|
info: dict[str, Any]
|