mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 14:47:38 +00:00
Remove entity description mixin in Honeywell Lyric (#112903)
This commit is contained in:
parent
830f419a8f
commit
0d68c27985
@ -42,21 +42,14 @@ LYRIC_SETPOINT_STATUS_NAMES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class LyricSensorEntityDescriptionMixin:
|
class LyricSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Class describing Honeywell Lyric sensor entities."""
|
||||||
|
|
||||||
value_fn: Callable[[LyricDevice], StateType | datetime]
|
value_fn: Callable[[LyricDevice], StateType | datetime]
|
||||||
suitable_fn: Callable[[LyricDevice], bool]
|
suitable_fn: Callable[[LyricDevice], bool]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class LyricSensorEntityDescription(
|
|
||||||
SensorEntityDescription, LyricSensorEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Class describing Honeywell Lyric sensor entities."""
|
|
||||||
|
|
||||||
|
|
||||||
DEVICE_SENSORS: list[LyricSensorEntityDescription] = [
|
DEVICE_SENSORS: list[LyricSensorEntityDescription] = [
|
||||||
LyricSensorEntityDescription(
|
LyricSensorEntityDescription(
|
||||||
key="indoor_temperature",
|
key="indoor_temperature",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user