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:
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
Block a user