Remove entity description mixin in Dovado (#112402)
This commit is contained in:
parent
59eac48e33
commit
a626a698f0
1 changed files with 3 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue