17 lines
374 B
Python
17 lines
374 B
Python
"""Type definitions for AccuWeather integration."""
|
|
from __future__ import annotations
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
class SensorDescription(TypedDict, total=False):
|
|
"""Sensor description class."""
|
|
|
|
device_class: str | None
|
|
icon: str | None
|
|
label: str
|
|
unit_metric: str | None
|
|
unit_imperial: str | None
|
|
enabled: bool
|
|
state_class: str | None
|