diff --git a/homeassistant/components/steamist/sensor.py b/homeassistant/components/steamist/sensor.py index 557952767ea..7c24d015513 100644 --- a/homeassistant/components/steamist/sensor.py +++ b/homeassistant/components/steamist/sensor.py @@ -31,20 +31,13 @@ UNIT_MAPPINGS = { } -@dataclass(frozen=True) -class SteamistSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class SteamistSensorEntityDescription(SensorEntityDescription): + """Describes a Steamist sensor entity.""" value_fn: Callable[[SteamistStatus], int | None] -@dataclass(frozen=True) -class SteamistSensorEntityDescription( - SensorEntityDescription, SteamistSensorEntityDescriptionMixin -): - """Describes a Steamist sensor entity.""" - - SENSORS: tuple[SteamistSensorEntityDescription, ...] = ( SteamistSensorEntityDescription( key=_KEY_MINUTES_REMAIN,