mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Remove entity description mixin in Netatmo (#112910)
This commit is contained in:
parent
f86119aec7
commit
14e7e4c860
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user