From f2b04a077eaf84ebb8d4f00abb182c031379f135 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Jun 2025 18:01:12 +0200 Subject: [PATCH] preen --- esphome/core/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/core/config.py b/esphome/core/config.py index b8288d534d..a84f2d85ab 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -496,12 +496,14 @@ async def to_code(config: ConfigType) -> None: cg.add(cg.App.register_area(area_var)) # Process devices and areas + devices: dict[str, str] | None if devices := config.get(CONF_DEVICES): # Reserve space for devices cg.add(cg.RawStatement(f"App.reserve_device({len(devices)});")) cg.add_define("USE_DEVICES") # Process additional areas + areas: dict[str, str] | None if areas := config.get(CONF_AREAS): for area_conf in areas: area = cg.new_Pvariable(area_conf[CONF_ID])