From 830f419a8fec3cbeffc8930021f36d17770b53ad Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:48:27 +0100 Subject: [PATCH] Remove entity description mixin in SABnzbd (#112933) --- homeassistant/components/sabnzbd/sensor.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/sabnzbd/sensor.py b/homeassistant/components/sabnzbd/sensor.py index 330a0a8c8d1..d5f19b5e718 100644 --- a/homeassistant/components/sabnzbd/sensor.py +++ b/homeassistant/components/sabnzbd/sensor.py @@ -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, ...] = (