Remove entity description mixin in Aseko (#112382)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 21:52:06 +01:00 committed by GitHub
parent 71be56e1fd
commit 066f227476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,20 +20,13 @@ from .coordinator import AsekoDataUpdateCoordinator
from .entity import AsekoEntity
@dataclass(frozen=True)
class AsekoBinarySensorDescriptionMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class AsekoBinarySensorEntityDescription(BinarySensorEntityDescription):
"""Describes an Aseko binary sensor entity."""
value_fn: Callable[[Unit], bool]
@dataclass(frozen=True)
class AsekoBinarySensorEntityDescription(
BinarySensorEntityDescription, AsekoBinarySensorDescriptionMixin
):
"""Describes an Aseko binary sensor entity."""
UNIT_BINARY_SENSORS: tuple[AsekoBinarySensorEntityDescription, ...] = (
AsekoBinarySensorEntityDescription(
key="water_flow",