Remove entity description mixin in Solaredge (#112942)
parent
ff88c46658
commit
f5c8732307
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue