Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """Models for the mystrom integration."""
2 
3 from dataclasses import dataclass
4 from typing import Any
5 
6 from pymystrom.bulb import MyStromBulb
7 from pymystrom.switch import MyStromSwitch
8 
9 
10 @dataclass
12  """Data class for mystrom device data."""
13 
14  device: MyStromSwitch | MyStromBulb
15  info: dict[str, Any]