From 105fca2212a8c6508aa81c7768c2d7a8bc3a45fa Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:52:42 +0100 Subject: [PATCH] Remove entity description mixin in Whirlpool (#112972) --- homeassistant/components/whirlpool/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/whirlpool/sensor.py b/homeassistant/components/whirlpool/sensor.py index ff92a059e96..a710dfb81a8 100644 --- a/homeassistant/components/whirlpool/sensor.py +++ b/homeassistant/components/whirlpool/sensor.py @@ -90,20 +90,13 @@ def washer_state(washer: WasherDryer) -> str | None: return MACHINE_STATE.get(machine_state, None) -@dataclass(frozen=True) -class WhirlpoolSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class WhirlpoolSensorEntityDescription(SensorEntityDescription): + """Describes Whirlpool Washer sensor entity.""" value_fn: Callable -@dataclass(frozen=True) -class WhirlpoolSensorEntityDescription( - SensorEntityDescription, WhirlpoolSensorEntityDescriptionMixin -): - """Describes Whirlpool Washer sensor entity.""" - - SENSORS: tuple[WhirlpoolSensorEntityDescription, ...] = ( WhirlpoolSensorEntityDescription( key="state",