mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Remove entity description mixin in Whirlpool (#112972)
This commit is contained in:
parent
85b6d70b04
commit
105fca2212
@ -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…
x
Reference in New Issue
Block a user