From 0d68c279851ecf11e7c6a679d2376dd61ec0703d Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:48:44 +0100 Subject: [PATCH] Remove entity description mixin in Honeywell Lyric (#112903) --- homeassistant/components/lyric/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/lyric/sensor.py b/homeassistant/components/lyric/sensor.py index 858c6c25bd4..f1e9a8b3c3c 100644 --- a/homeassistant/components/lyric/sensor.py +++ b/homeassistant/components/lyric/sensor.py @@ -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",