Remove entity description mixin in Whirlpool (#112972)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 11:52:42 +01:00 committed by GitHub
parent 85b6d70b04
commit 105fca2212
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,20 +90,13 @@ def washer_state(washer: WasherDryer) -> str | None:
return MACHINE_STATE.get(machine_state, None) return MACHINE_STATE.get(machine_state, None)
@dataclass(frozen=True) @dataclass(frozen=True, kw_only=True)
class WhirlpoolSensorEntityDescriptionMixin: class WhirlpoolSensorEntityDescription(SensorEntityDescription):
"""Mixin for required keys.""" """Describes Whirlpool Washer sensor entity."""
value_fn: Callable value_fn: Callable
@dataclass(frozen=True)
class WhirlpoolSensorEntityDescription(
SensorEntityDescription, WhirlpoolSensorEntityDescriptionMixin
):
"""Describes Whirlpool Washer sensor entity."""
SENSORS: tuple[WhirlpoolSensorEntityDescription, ...] = ( SENSORS: tuple[WhirlpoolSensorEntityDescription, ...] = (
WhirlpoolSensorEntityDescription( WhirlpoolSensorEntityDescription(
key="state", key="state",