1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00
ha-core/homeassistant/components/forecast_solar/models.py

17 lines
444 B
Python
Raw Normal View History

"""Models for the Forecast.Solar integration."""
from __future__ import annotations
from dataclasses import dataclass
2021-07-22 00:04:30 +02:00
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."""
2021-07-22 00:04:30 +02:00
state: Callable[[Estimate], Any] | None = None