Home Assistant Unofficial Reference 2024.12.1
data.py
Go to the documentation of this file.
1 """Common Met Office Data class used by both sensor and entity."""
2 
3 from __future__ import annotations
4 
5 from dataclasses import dataclass
6 
7 from datapoint.Forecast import Forecast
8 from datapoint.Site import Site
9 from datapoint.Timestep import Timestep
10 
11 
12 @dataclass
14  """Data structure for MetOffice weather and forecast."""
15 
16  now: Forecast
17  forecast: list[Timestep]
18  site: Site