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)
@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",