1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 14:13:51 +00:00

update minimal python version to 3.10 (#8850)

This commit is contained in:
Thomas Rupprecht
2025-05-22 03:21:43 +02:00
committed by GitHub
parent 026f47bfb3
commit aeb4e63950
36 changed files with 148 additions and 166 deletions

View File

@@ -1,5 +1,5 @@
from collections.abc import Awaitable
from typing import Any, Callable, Optional
from collections.abc import Awaitable, Callable
from typing import Any
import esphome.codegen as cg
from esphome.const import CONF_ID
@@ -103,7 +103,7 @@ def define_setting_readers(component_type: str, keys: list[str]) -> None:
def add_messages(hub: cg.MockObj, keys: list[str], schemas: dict[str, TSchema]):
messages: dict[str, tuple[bool, Optional[int]]] = {}
messages: dict[str, tuple[bool, int | None]] = {}
for key in keys:
messages[schemas[key].message] = (
schemas[key].keep_updated,