mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00: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)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class SolarEdgeSensorEntityRequiredKeyMixin:
|
class SolarEdgeSensorEntityDescription(SensorEntityDescription):
|
||||||
"""Sensor entity description with json_key for SolarEdge."""
|
"""Sensor entity description for SolarEdge."""
|
||||||
|
|
||||||
json_key: str
|
json_key: str
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
|
||||||
class SolarEdgeSensorEntityDescription(
|
|
||||||
SensorEntityDescription, SolarEdgeSensorEntityRequiredKeyMixin
|
|
||||||
):
|
|
||||||
"""Sensor entity description for SolarEdge."""
|
|
||||||
|
|
||||||
|
|
||||||
SENSOR_TYPES = [
|
SENSOR_TYPES = [
|
||||||
SolarEdgeSensorEntityDescription(
|
SolarEdgeSensorEntityDescription(
|
||||||
key="lifetime_energy",
|
key="lifetime_energy",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user