1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-26 18:26:25 +01:00

Remove entity description mixin in Nettigo Air Monitor (#112909)

This commit is contained in:
Joost Lekkerkerker
2024-03-10 21:44:41 +01:00
committed by GitHub
parent 08874354c7
commit c8c00a86a6
+3 -8
View File
@@ -75,18 +75,13 @@ PARALLEL_UPDATES = 1
_LOGGER = logging.getLogger(__name__)
@dataclass(frozen=True)
class NAMSensorRequiredKeysMixin:
"""Class for NAM entity required keys."""
@dataclass(frozen=True, kw_only=True)
class NAMSensorEntityDescription(SensorEntityDescription):
"""NAM sensor entity description."""
value: Callable[[NAMSensors], StateType | datetime]
@dataclass(frozen=True)
class NAMSensorEntityDescription(SensorEntityDescription, NAMSensorRequiredKeysMixin):
"""NAM sensor entity description."""
SENSORS: tuple[NAMSensorEntityDescription, ...] = (
NAMSensorEntityDescription(
key=ATTR_BME280_HUMIDITY,