Remove entity description mixin in Honeywell Lyric (#112903)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 11:48:44 +01:00 committed by GitHub
parent 830f419a8f
commit 0d68c27985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,21 +42,14 @@ LYRIC_SETPOINT_STATUS_NAMES = {
}
@dataclass(frozen=True)
class LyricSensorEntityDescriptionMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class LyricSensorEntityDescription(SensorEntityDescription):
"""Class describing Honeywell Lyric sensor entities."""
value_fn: Callable[[LyricDevice], StateType | datetime]
suitable_fn: Callable[[LyricDevice], bool]
@dataclass(frozen=True)
class LyricSensorEntityDescription(
SensorEntityDescription, LyricSensorEntityDescriptionMixin
):
"""Class describing Honeywell Lyric sensor entities."""
DEVICE_SENSORS: list[LyricSensorEntityDescription] = [
LyricSensorEntityDescription(
key="indoor_temperature",