Remove entity description mixin in Netatmo (#112910)
parent
f86119aec7
commit
14e7e4c860
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue