From d0f53c2c99e7030dd8dc6dbc2aac72f1d84d6912 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 10:20:08 +0100 Subject: [PATCH] Remove entity description mixin in Vilfo (#112966) --- homeassistant/components/vilfo/sensor.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/vilfo/sensor.py b/homeassistant/components/vilfo/sensor.py index 34c862e1a8f..77a7df7a0a8 100644 --- a/homeassistant/components/vilfo/sensor.py +++ b/homeassistant/components/vilfo/sensor.py @@ -25,18 +25,13 @@ from .const import ( ) -@dataclass(frozen=True) -class VilfoRequiredKeysMixin: - """Mixin for required keys.""" +@dataclass(frozen=True, kw_only=True) +class VilfoSensorEntityDescription(SensorEntityDescription): + """Describes Vilfo sensor entity.""" api_key: str -@dataclass(frozen=True) -class VilfoSensorEntityDescription(SensorEntityDescription, VilfoRequiredKeysMixin): - """Describes Vilfo sensor entity.""" - - SENSOR_TYPES: tuple[VilfoSensorEntityDescription, ...] = ( VilfoSensorEntityDescription( key=ATTR_LOAD,