mirror of
https://github.com/home-assistant/core.git
synced 2026-09-15 18:24:59 -05:00
Remove entity description mixin in Dovado (#112402)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user