tests/models.py

10 lines
172 B
Python

from dataclasses import dataclass
from typing import Any
@dataclass
class SensorData:
mac: str
value: Any
time: int | None = None
name: str | None = None