* Use SensorEntityDescription * Add missing type for entity_description * Use tuples instead of lists * Suggested change
14 lines
394 B
Python
14 lines
394 B
Python
"""Type definitions for AccuWeather integration."""
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from homeassistant.components.sensor import SensorEntityDescription
|
|
|
|
|
|
@dataclass
|
|
class AccuWeatherSensorDescription(SensorEntityDescription):
|
|
"""Class describing AccuWeather sensor entities."""
|
|
|
|
unit_metric: str | None = None
|
|
unit_imperial: str | None = None
|