Remove entity description mixin in Dovado (#112402)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 18:26:20 +01:00 committed by GitHub
parent 59eac48e33
commit a626a698f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,18 +30,13 @@ SENSOR_NETWORK = "network"
SENSOR_SMS_UNREAD = "sms"
@dataclass(frozen=True)
class DovadoRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class DovadoSensorEntityDescription(SensorEntityDescription):
"""Describes Dovado sensor entity."""
identifier: str
@dataclass(frozen=True)
class DovadoSensorEntityDescription(SensorEntityDescription, DovadoRequiredKeysMixin):
"""Describes Dovado sensor entity."""
SENSOR_TYPES: tuple[DovadoSensorEntityDescription, ...] = (
DovadoSensorEntityDescription(
identifier=SENSOR_NETWORK,