hass-core/homeassistant/components/metoffice/data.py
avee87 b3fec4c401
Typehints and cleanup for metoffice (#74338)
* Typehints and cleanup for metoffice

* add myself as owner
2022-07-04 19:12:41 +03:00

17 lines
374 B
Python

"""Common Met Office Data class used by both sensor and entity."""
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