From bfd75828255b6ebb59ff2d15d626a9f7b774cb42 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sat, 9 Mar 2024 16:00:31 +0100 Subject: [PATCH] Remove entity description mixin in Glances (#112772) --- homeassistant/components/glances/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/glances/sensor.py b/homeassistant/components/glances/sensor.py index 35350e863fa..7591bf954d3 100644 --- a/homeassistant/components/glances/sensor.py +++ b/homeassistant/components/glances/sensor.py @@ -28,20 +28,13 @@ from . import GlancesDataUpdateCoordinator from .const import CPU_ICON, DOMAIN -@dataclass(frozen=True) -class GlancesSensorEntityDescriptionMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class GlancesSensorEntityDescription(SensorEntityDescription): + """Describe Glances sensor entity.""" type: str -@dataclass(frozen=True) -class GlancesSensorEntityDescription( - SensorEntityDescription, GlancesSensorEntityDescriptionMixin -): - """Describe Glances sensor entity.""" - - SENSOR_TYPES = { ("fs", "disk_use_percent"): GlancesSensorEntityDescription( key="disk_use_percent",