mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Improve weather Forecast typing (#85019)
This commit is contained in:
parent
2507ec1f4b
commit
bdcccd9d83
@ -9,6 +9,8 @@ import inspect
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any, Final, TypedDict, final
|
from typing import Any, Final, TypedDict, final
|
||||||
|
|
||||||
|
from typing_extensions import Required
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
PRECISION_HALVES,
|
PRECISION_HALVES,
|
||||||
@ -159,7 +161,7 @@ class Forecast(TypedDict, total=False):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
condition: str | None
|
condition: str | None
|
||||||
datetime: str
|
datetime: Required[str]
|
||||||
precipitation_probability: int | None
|
precipitation_probability: int | None
|
||||||
native_precipitation: float | None
|
native_precipitation: float | None
|
||||||
precipitation: None
|
precipitation: None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user