* Improve type annotations * Remove unused argument * Simplify state logic * Fix uvindex state * Fix type for logger * Increase tests coverage * Fix pylint arguments-differ error * Suggested change * Suggested change * Remove unnecessary variable * Remove unnecessary conditions * Use int instead of list for forecast days * Add enabled to sensor types dicts * Fix request_remaining conversion and tests * Run hassfest * Suggested change * Suggested change * Do not use StateType
15 lines
333 B
Python
15 lines
333 B
Python
"""Type definitions for AccuWeather integration."""
|
|
from __future__ import annotations
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
class SensorDescription(TypedDict):
|
|
"""Sensor description class."""
|
|
|
|
device_class: str | None
|
|
icon: str | None
|
|
label: str
|
|
unit_metric: str | None
|
|
unit_imperial: str | None
|
|
enabled: bool
|