2021-06-29 06:37:33 +00:00
|
|
|
"""Models for the SolarEdge integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
2021-07-29 19:34:22 +00:00
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
2021-06-29 06:37:33 +00:00
|
|
|
|
|
|
|
|
2021-07-29 19:34:22 +00:00
|
|
|
@dataclass
|
2022-07-11 13:07:54 +00:00
|
|
|
class SolarEdgeSensorEntityRequiredKeyMixin:
|
|
|
|
"""Sensor entity description with json_key for SolarEdge."""
|
|
|
|
|
|
|
|
json_key: str
|
|
|
|
|
2021-06-29 06:37:33 +00:00
|
|
|
|
2022-07-11 13:07:54 +00:00
|
|
|
@dataclass
|
|
|
|
class SolarEdgeSensorEntityDescription(
|
|
|
|
SensorEntityDescription, SolarEdgeSensorEntityRequiredKeyMixin
|
|
|
|
):
|
|
|
|
"""Sensor entity description for SolarEdge."""
|