Remove entity description mixin in SABnzbd (#112933)
parent
65f2c74cb0
commit
830f419a8f
|
@ -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, ...] = (
|
||||
|
|
Loading…
Reference in New Issue