diff --git a/homeassistant/components/enocean/sensor.py b/homeassistant/components/enocean/sensor.py index e4dd9c7cfb1..01847769a73 100644 --- a/homeassistant/components/enocean/sensor.py +++ b/homeassistant/components/enocean/sensor.py @@ -44,20 +44,13 @@ SENSOR_TYPE_TEMPERATURE = "temperature" SENSOR_TYPE_WINDOWHANDLE = "windowhandle" -@dataclass(frozen=True) -class EnOceanSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class EnOceanSensorEntityDescription(SensorEntityDescription): + """Describes EnOcean sensor entity.""" unique_id: Callable[[list[int]], str | None] -@dataclass(frozen=True) -class EnOceanSensorEntityDescription( - SensorEntityDescription, EnOceanSensorEntityDescriptionMixin -): - """Describes EnOcean sensor entity.""" - - SENSOR_DESC_TEMPERATURE = EnOceanSensorEntityDescription( key=SENSOR_TYPE_TEMPERATURE, name="Temperature",