core/homeassistant/components/forecast_solar/models.py

18 lines
398 B
Python
Raw Normal View History

"""Models for the Forecast.Solar integration."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass
class ForecastSolarSensor:
"""Represents an Forecast.Solar Sensor."""
key: str
name: str
device_class: str | None = None
entity_registry_enabled_default: bool = True
state_class: str | None = None
unit_of_measurement: str | None = None