From f5c873230729d57cbb4d4f39c8911ca21b62fbe3 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 11 Mar 2024 11:56:37 +0100 Subject: [PATCH] Remove entity description mixin in Solaredge (#112942) --- homeassistant/components/solaredge/sensor.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/solaredge/sensor.py b/homeassistant/components/solaredge/sensor.py index 0099812c6fc..5ec65a3b9a5 100644 --- a/homeassistant/components/solaredge/sensor.py +++ b/homeassistant/components/solaredge/sensor.py @@ -34,20 +34,13 @@ from .coordinator import ( ) -@dataclass(frozen=True) -class SolarEdgeSensorEntityRequiredKeyMixin: - """Sensor entity description with json_key for SolarEdge.""" +@dataclass(frozen=True, kw_only=True) +class SolarEdgeSensorEntityDescription(SensorEntityDescription): + """Sensor entity description for SolarEdge.""" json_key: str -@dataclass(frozen=True) -class SolarEdgeSensorEntityDescription( - SensorEntityDescription, SolarEdgeSensorEntityRequiredKeyMixin -): - """Sensor entity description for SolarEdge.""" - - SENSOR_TYPES = [ SolarEdgeSensorEntityDescription( key="lifetime_energy",