core/homeassistant/components/mystrom/models.py

16 lines
327 B
Python

"""Models for the mystrom integration."""
from dataclasses import dataclass
from typing import Any
from pymystrom.bulb import MyStromBulb
from pymystrom.switch import MyStromSwitch
@dataclass
class MyStromData:
"""Data class for mystrom device data."""
device: MyStromSwitch | MyStromBulb
info: dict[str, Any]