mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Remove entity description mixin in SABnzbd (#112933)
This commit is contained in:
parent
65f2c74cb0
commit
830f419a8f
@ -21,18 +21,13 @@ from . import DOMAIN, SIGNAL_SABNZBD_UPDATED
|
|||||||
from .const import DEFAULT_NAME, KEY_API_DATA
|
from .const import DEFAULT_NAME, KEY_API_DATA
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SabnzbdRequiredKeysMixin:
|
class SabnzbdSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Mixin for required keys."""
|
"""Describes Sabnzbd sensor entity."""
|
||||||
|
|
||||||
key: str
|
key: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SabnzbdSensorEntityDescription(SensorEntityDescription, SabnzbdRequiredKeysMixin):
|
|
||||||
"""Describes Sabnzbd sensor entity."""
|
|
||||||
|
|
||||||
|
|
||||||
SPEED_KEY = "kbpersec"
|
SPEED_KEY = "kbpersec"
|
||||||
|
|
||||||
SENSOR_TYPES: tuple[SabnzbdSensorEntityDescription, ...] = (
|
SENSOR_TYPES: tuple[SabnzbdSensorEntityDescription, ...] = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user