From 2b8f42be395b3a796c885b06d3c50dddcbc380b6 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:51:21 +0100 Subject: [PATCH] Remove entity description mixin in Zamg (#112976) --- homeassistant/components/zamg/sensor.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/zamg/sensor.py b/homeassistant/components/zamg/sensor.py index 4e1a1d49bec..7c7f5fd6c16 100644 --- a/homeassistant/components/zamg/sensor.py +++ b/homeassistant/components/zamg/sensor.py @@ -38,18 +38,13 @@ from .const import ( from .coordinator import ZamgDataUpdateCoordinator -@dataclass(frozen=True) -class ZamgRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class ZamgSensorEntityDescription(SensorEntityDescription): + """Describes Zamg sensor entity.""" para_name: str -@dataclass(frozen=True) -class ZamgSensorEntityDescription(SensorEntityDescription, ZamgRequiredKeysMixin): - """Describes Zamg sensor entity.""" - - SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = ( ZamgSensorEntityDescription( key="pressure",