Remove entity description mixin in Whirlpool (#112972)
This commit is contained in:
parent
85b6d70b04
commit
105fca2212
1 changed files with 3 additions and 10 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue