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" SENSOR_SMS_UNREAD = "sms"
@dataclass(frozen=True) @dataclass(frozen=True, kw_only=True)
class DovadoRequiredKeysMixin: class DovadoSensorEntityDescription(SensorEntityDescription):
"""Mixin for required keys.""" """Describes Dovado sensor entity."""
identifier: str identifier: str
@dataclass(frozen=True)
class DovadoSensorEntityDescription(SensorEntityDescription, DovadoRequiredKeysMixin):
"""Describes Dovado sensor entity."""
SENSOR_TYPES: tuple[DovadoSensorEntityDescription, ...] = ( SENSOR_TYPES: tuple[DovadoSensorEntityDescription, ...] = (
DovadoSensorEntityDescription( DovadoSensorEntityDescription(
identifier=SENSOR_NETWORK, identifier=SENSOR_NETWORK,