1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00
ha-core/homeassistant/components/forecast_solar/models.py

17 lines
444 B
Python

"""Models for the Forecast.Solar integration."""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any, Callable
from forecast_solar.models import Estimate
from homeassistant.components.sensor import SensorEntityDescription
@dataclass
class ForecastSolarSensorEntityDescription(SensorEntityDescription):
"""Describes a Forecast.Solar Sensor."""
state: Callable[[Estimate], Any] | None = None