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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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