1 """Types for the energy platform."""
3 from __future__
import annotations
5 from collections.abc
import Awaitable, Callable
6 from typing
import Protocol, TypedDict
12 """Return value for solar forecast."""
14 wh_hours: dict[str, float | int]
17 type GetSolarForecastType = Callable[
18 [HomeAssistant, str], Awaitable[SolarForecastType |
None]
23 """Represents the methods we expect on the energy platforms."""
27 hass: HomeAssistant, config_entry_id: str
28 ) -> SolarForecastType |
None:
29 """Get forecast for solar production for specific config entry ID."""