2021-05-19 10:37:16 +02:00
|
|
|
"""Type definitions for AccuWeather integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
|
|
|
2021-06-25 10:06:15 +02:00
|
|
|
class SensorDescription(TypedDict, total=False):
|
2021-05-19 10:37:16 +02: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 10:06:15 +02:00
|
|
|
state_class: str | None
|