2021-05-19 08:37:16 +00:00
|
|
|
"""Type definitions for AccuWeather integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2021-07-28 08:26:14 +00:00
|
|
|
from dataclasses import dataclass
|
2021-05-19 08:37:16 +00:00
|
|
|
|
2021-07-28 08:26:14 +00:00
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
2021-05-19 08:37:16 +00:00
|
|
|
|
|
|
|
|
2021-07-28 08:26:14 +00:00
|
|
|
@dataclass
|
|
|
|
class AccuWeatherSensorDescription(SensorEntityDescription):
|
|
|
|
"""Class describing AccuWeather sensor entities."""
|
|
|
|
|
|
|
|
unit_metric: str | None = None
|
|
|
|
unit_imperial: str | None = None
|