Remove entity description mixin in SABnzbd (#112933)

pull/111502/head
Joost Lekkerkerker 2024-03-11 11:48:27 +01:00 committed by GitHub
parent 65f2c74cb0
commit 830f419a8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 8 deletions

View File

@ -21,18 +21,13 @@ from . import DOMAIN, SIGNAL_SABNZBD_UPDATED
from .const import DEFAULT_NAME, KEY_API_DATA
@dataclass(frozen=True)
class SabnzbdRequiredKeysMixin:
"""Mixin for required keys."""
@dataclass(frozen=True, kw_only=True)
class SabnzbdSensorEntityDescription(SensorEntityDescription):
"""Describes Sabnzbd sensor entity."""
key: str
@dataclass(frozen=True)
class SabnzbdSensorEntityDescription(SensorEntityDescription, SabnzbdRequiredKeysMixin):
"""Describes Sabnzbd sensor entity."""
SPEED_KEY = "kbpersec"
SENSOR_TYPES: tuple[SabnzbdSensorEntityDescription, ...] = (