Remove entity description mixin in Youtube (#112975)

This commit is contained in:
Joost Lekkerkerker 2024-03-10 19:48:14 +01:00 committed by GitHub
parent 65624a9491
commit 5bfbe00c57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,9 +27,9 @@ from .const import (
from .entity import YouTubeChannelEntity
@dataclass(frozen=True)
class YouTubeMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class YouTubeSensorEntityDescription(SensorEntityDescription):
"""Describes YouTube sensor entity."""
available_fn: Callable[[Any], bool]
value_fn: Callable[[Any], StateType]
@ -37,11 +37,6 @@ class YouTubeMixin:
attributes_fn: Callable[[Any], dict[str, Any] | None] | None
@dataclass(frozen=True)
class YouTubeSensorEntityDescription(SensorEntityDescription, YouTubeMixin):
"""Describes YouTube sensor entity."""
SENSOR_TYPES = [
YouTubeSensorEntityDescription(
key="latest_upload",