mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Remove entity description mixin in Aseko (#112382)
This commit is contained in:
parent
71be56e1fd
commit
066f227476
@ -20,20 +20,13 @@ from .coordinator import AsekoDataUpdateCoordinator
|
|||||||
from .entity import AsekoEntity
|
from .entity import AsekoEntity
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class AsekoBinarySensorDescriptionMixin:
|
class AsekoBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes an Aseko binary sensor entity."""
|
||||||
|
|
||||||
value_fn: Callable[[Unit], bool]
|
value_fn: Callable[[Unit], bool]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class AsekoBinarySensorEntityDescription(
|
|
||||||
BinarySensorEntityDescription, AsekoBinarySensorDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describes an Aseko binary sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
UNIT_BINARY_SENSORS: tuple[AsekoBinarySensorEntityDescription, ...] = (
|
UNIT_BINARY_SENSORS: tuple[AsekoBinarySensorEntityDescription, ...] = (
|
||||||
AsekoBinarySensorEntityDescription(
|
AsekoBinarySensorEntityDescription(
|
||||||
key="water_flow",
|
key="water_flow",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user