2021-07-04 16:54:07 +00:00
|
|
|
"""Type definitions for GIOS integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2021-09-29 14:19:06 +00:00
|
|
|
from collections.abc import Callable
|
2021-07-28 06:21:00 +00:00
|
|
|
from dataclasses import dataclass
|
2021-07-04 16:54:07 +00:00
|
|
|
|
2021-07-28 06:21:00 +00:00
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
2021-07-04 16:54:07 +00:00
|
|
|
|
|
|
|
|
2021-07-28 06:21:00 +00:00
|
|
|
@dataclass
|
|
|
|
class GiosSensorEntityDescription(SensorEntityDescription):
|
|
|
|
"""Class describing GIOS sensor entities."""
|
|
|
|
|
|
|
|
value: Callable | None = round
|