mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
18 lines
555 B
Python
18 lines
555 B
Python
"""Define data classes for the IRM KMI integration."""
|
|
|
|
from dataclasses import dataclass, field
|
|
|
|
from irm_kmi_api import CurrentWeatherData, ExtendedForecast
|
|
|
|
from homeassistant.components.weather import Forecast
|
|
|
|
|
|
@dataclass
|
|
class ProcessedCoordinatorData:
|
|
"""Dataclass that will be exposed to the entities consuming data from an IrmKmiCoordinator."""
|
|
|
|
current_weather: CurrentWeatherData
|
|
country: str
|
|
hourly_forecast: list[Forecast] = field(default_factory=list)
|
|
daily_forecast: list[ExtendedForecast] = field(default_factory=list)
|