2021-05-19 08:37:16 +00:00
|
|
|
"""Type definitions for AccuWeather integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
|
|
|
2021-06-25 08:06:15 +00:00
|
|
|
class SensorDescription(TypedDict, total=False):
|
2021-05-19 08:37:16 +00:00
|
|
|
"""Sensor description class."""
|
|
|
|
|
|
|
|
device_class: str | None
|
|
|
|
icon: str | None
|
|
|
|
label: str
|
|
|
|
unit_metric: str | None
|
|
|
|
unit_imperial: str | None
|
|
|
|
enabled: bool
|
2021-06-25 08:06:15 +00:00
|
|
|
state_class: str | None
|