Remove entity description mixin in Netatmo (#112910)

This commit is contained in:
Joost Lekkerkerker
2024-03-11 12:04:04 +01:00
committed by GitHub
parent f86119aec7
commit 14e7e4c860

View File

@@ -71,18 +71,13 @@ SUPPORTED_PUBLIC_SENSOR_TYPES: tuple[str, ...] = (
)
@dataclass(frozen=True)
class NetatmoRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class NetatmoSensorEntityDescription(SensorEntityDescription):
"""Describes Netatmo sensor entity."""
netatmo_name: str
@dataclass(frozen=True)
class NetatmoSensorEntityDescription(SensorEntityDescription, NetatmoRequiredKeysMixin):
"""Describes Netatmo sensor entity."""
SENSOR_TYPES: tuple[NetatmoSensorEntityDescription, ...] = (
NetatmoSensorEntityDescription(
key="temperature",