mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Improve weather Forecast typing (#85019)
This commit is contained in:
parent
2507ec1f4b
commit
bdcccd9d83
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user