15 lines
379 B
Python
15 lines
379 B
Python
"""Type definitions for GIOS integration."""
|
|
from __future__ import annotations
|
|
|
|
from collections.abc import Callable
|
|
from dataclasses import dataclass
|
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
|
|
|
|
|
@dataclass
|
|
class GiosSensorEntityDescription(SensorEntityDescription):
|
|
"""Class describing GIOS sensor entities."""
|
|
|
|
value: Callable | None = round
|