Files
project-work/home-assistant/homeassistant/components/metoffice/data.py
2026-11-19 15:15:32 -05:00

19 lines
409 B
Python

"""Common Met Office Data class used by both sensor and entity."""
from __future__ import annotations
from dataclasses import dataclass
from datapoint.Forecast import Forecast
from datapoint.Site import Site
from datapoint.Timestep import Timestep
@dataclass
class MetOfficeData:
"""Data structure for MetOffice weather and forecast."""
now: Forecast
forecast: list[Timestep]
site: Site