From b03e3b8d4abe67ee406fbfbb2aebd203a888b93d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Jun 2025 10:07:05 +0200 Subject: [PATCH] fixes --- esphome/core/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/core/config.py b/esphome/core/config.py index d870513cf9..cd8c0d7420 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -480,9 +480,9 @@ async def to_code(config: ConfigType) -> None: cg.add_define("USE_AREAS") # Handle area configuration - area_hashes = dict[int, str] = {} - area_ids = set[str] = set() - device_hashes = dict[int, str] = {} + area_hashes: dict[int, str] = {} + area_ids: set[str] = set() + device_hashes: dict[int, str] = {} area_conf: dict[str, str] | str | None if area_conf := config.get(CONF_AREA): if isinstance(area_conf, dict): @@ -524,7 +524,7 @@ async def to_code(config: ConfigType) -> None: cg.add(cg.RawStatement(f"App.reserve_device({len(devices)});")) cg.add_define("USE_DEVICES") - # Process additional areas + # Process additional areas from the areas list areas: list[dict[str, str]] if areas := config[CONF_AREAS]: for area_conf in areas: