diff --git a/homeassistant/components/jellyfin/sensor.py b/homeassistant/components/jellyfin/sensor.py index b4341d2a190..85c7e9e9ee1 100644 --- a/homeassistant/components/jellyfin/sensor.py +++ b/homeassistant/components/jellyfin/sensor.py @@ -17,20 +17,13 @@ from .entity import JellyfinEntity from .models import JellyfinData -@dataclass(frozen=True) -class JellyfinSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class JellyfinSensorEntityDescription(SensorEntityDescription): + """Describes Jellyfin sensor entity.""" value_fn: Callable[[JellyfinDataT], StateType] -@dataclass(frozen=True) -class JellyfinSensorEntityDescription( - SensorEntityDescription, JellyfinSensorEntityDescriptionMixin -): - """Describes Jellyfin sensor entity.""" - - def _count_now_playing(data: JellyfinDataT) -> int: """Count the number of now playing.""" session_ids = [