From 6e1981c43c1b21989ea9ab855ffccdc2681833ce Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 16:06:27 +0100 Subject: [PATCH] Remove entity description mixin in Honeywell (#112776) --- homeassistant/components/honeywell/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/honeywell/sensor.py b/homeassistant/components/honeywell/sensor.py index 76e8a5b2588..030f8be779b 100644 --- a/homeassistant/components/honeywell/sensor.py +++ b/homeassistant/components/honeywell/sensor.py @@ -37,21 +37,14 @@ def _get_temperature_sensor_unit(device: Device) -> str: return UnitOfTemperature.FAHRENHEIT -@dataclass(frozen=True) -class HoneywellSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class HoneywellSensorEntityDescription(SensorEntityDescription): + """Describes a Honeywell sensor entity.""" value_fn: Callable[[Device], Any] unit_fn: Callable[[Device], Any] -@dataclass(frozen=True) -class HoneywellSensorEntityDescription( - SensorEntityDescription, HoneywellSensorEntityDescriptionMixin -): - """Describes a Honeywell sensor entity.""" - - SENSOR_TYPES: tuple[HoneywellSensorEntityDescription, ...] = ( HoneywellSensorEntityDescription( key=OUTDOOR_TEMPERATURE_STATUS_KEY,