forked from platypush/platypush
Fabio Manganiello
6a3ade3304
The package contains the base types and constants shared across sensor-based integrations.
11 lines
314 B
Python
11 lines
314 B
Python
from typing import Iterable, Mapping, Union
|
|
|
|
Numeric = Union[float, int]
|
|
SensorDataType = Union[Numeric, Mapping[str, Numeric], Iterable[Numeric]]
|
|
"""
|
|
Numeric sensor data published by integrations can be either of:
|
|
|
|
- ``int``/``float``
|
|
- Mapping of ``str -> int/float``
|
|
- List of ``int``/``float``
|
|
"""
|