Remove entity description mixin in Abode (#112374)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 21:47:43 +01:00 committed by GitHub
parent 75df17a8bb
commit d7d2a28f5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,19 +27,14 @@ ABODE_TEMPERATURE_UNIT_HA_UNIT = {
}
@dataclass(frozen=True)
class AbodeSensorDescriptionMixin:
"""Mixin for Abode sensor."""
@dataclass(frozen=True, kw_only=True)
class AbodeSensorDescription(SensorEntityDescription):
"""Class describing Abode sensor entities."""
value_fn: Callable[[AbodeSense], float]
native_unit_of_measurement_fn: Callable[[AbodeSense], str]
@dataclass(frozen=True)
class AbodeSensorDescription(SensorEntityDescription, AbodeSensorDescriptionMixin):
"""Class describing Abode sensor entities."""
SENSOR_TYPES: tuple[AbodeSensorDescription, ...] = (
AbodeSensorDescription(
key=CONST.TEMP_STATUS_KEY,