diff --git a/models.py b/models.py index 17dbfbb..c0a0935 100644 --- a/models.py +++ b/models.py @@ -1,34 +1,92 @@ +from urllib.parse import quote + from dataclasses import dataclass -from typing import Any, Iterable +from typing import Collection + + +type Numeric = int | float @dataclass class SensorData: mac: str - value: Any + value: Numeric + # actually `time` is either decimal int, + # hex int or T