mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Remove entity description mixin in Steamist (#112944)
This commit is contained in:
parent
1bc6277c47
commit
ff88c46658
@ -31,20 +31,13 @@ UNIT_MAPPINGS = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SteamistSensorEntityDescriptionMixin:
|
class SteamistSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes a Steamist sensor entity."""
|
||||||
|
|
||||||
value_fn: Callable[[SteamistStatus], int | None]
|
value_fn: Callable[[SteamistStatus], int | None]
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SteamistSensorEntityDescription(
|
|
||||||
SensorEntityDescription, SteamistSensorEntityDescriptionMixin
|
|
||||||
):
|
|
||||||
"""Describes a Steamist sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSORS: tuple[SteamistSensorEntityDescription, ...] = (
|
SENSORS: tuple[SteamistSensorEntityDescription, ...] = (
|
||||||
SteamistSensorEntityDescription(
|
SteamistSensorEntityDescription(
|
||||||
key=_KEY_MINUTES_REMAIN,
|
key=_KEY_MINUTES_REMAIN,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user