mirror of https://github.com/home-assistant/core
Remove entity description mixin in Flume (#112765)
This commit is contained in:
parent
945710874b
commit
6671a84661
|
@ -40,20 +40,13 @@ BINARY_SENSOR_DESCRIPTION_CONNECTED = BinarySensorEntityDescription(
|
|||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FlumeBinarySensorRequiredKeysMixin:
|
||||
"""Mixin for required keys."""
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class FlumeBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
"""Describes a binary sensor entity."""
|
||||
|
||||
event_rule: str
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class FlumeBinarySensorEntityDescription(
|
||||
BinarySensorEntityDescription, FlumeBinarySensorRequiredKeysMixin
|
||||
):
|
||||
"""Describes a binary sensor entity."""
|
||||
|
||||
|
||||
FLUME_BINARY_NOTIFICATION_SENSORS: tuple[FlumeBinarySensorEntityDescription, ...] = (
|
||||
FlumeBinarySensorEntityDescription(
|
||||
key="leak",
|
||||
|
|
Loading…
Reference in New Issue