mirror of
https://github.com/home-assistant/core.git
synced 2025-05-07 15:39:18 +00:00

* Use SensorEntityDescription * Add missing type for entity_description * Use tuples instead of lists * Suggested change
15 lines
394 B
Python
15 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
|