From 066f227476b86f9d3961464bd246a2febf3bcb3f Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 5 Mar 2024 21:52:06 +0100 Subject: [PATCH] Remove entity description mixin in Aseko (#112382) --- .../components/aseko_pool_live/binary_sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/aseko_pool_live/binary_sensor.py b/homeassistant/components/aseko_pool_live/binary_sensor.py index e0b45ee6d4f..a84ac0799d4 100644 --- a/homeassistant/components/aseko_pool_live/binary_sensor.py +++ b/homeassistant/components/aseko_pool_live/binary_sensor.py @@ -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",