1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-29 19:57:40 +01:00

Improve weather Forecast typing (#85019)

This commit is contained in:
Franck Nijhof
2023-01-06 03:39:37 +01:00
committed by GitHub
parent 2507ec1f4b
commit bdcccd9d83
+3 -1
View File
@@ -9,6 +9,8 @@ import inspect
import logging
from typing import Any, Final, TypedDict, final
from typing_extensions import Required
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
PRECISION_HALVES,
@@ -159,7 +161,7 @@ class Forecast(TypedDict, total=False):
"""
condition: str | None
datetime: str
datetime: Required[str]
precipitation_probability: int | None
native_precipitation: float | None
precipitation: None