1
mirror of https://github.com/home-assistant/core synced 2024-09-25 00:41:32 +02:00

Remove entity description mixin in Solaredge (#112942)

This commit is contained in:
Joost Lekkerkerker 2024-03-11 11:56:37 +01:00 committed by GitHub
parent ff88c46658
commit f5c8732307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",