From d3b18debf9dc237622890e5c07779d850b8854e5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Jun 2025 21:06:33 +0200 Subject: [PATCH] validate sooner --- esphome/core/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/core/config.py b/esphome/core/config.py index 7358276754..d08441d3fd 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -120,7 +120,7 @@ def validate_id_hash_collisions(config: dict) -> dict: area_hashes[area_hash] = area_id.id # Check areas list - for area in config.get(CONF_AREAS, []): + for area in config[CONF_AREAS]: area_id: core.ID = area[CONF_ID] if not area_id.id: continue @@ -142,7 +142,7 @@ def validate_id_hash_collisions(config: dict) -> dict: # Check device hash collisions device_hashes: dict[int, str] = {} - for device in config.get(CONF_DEVICES, []): + for device in config[CONF_DEVICES]: device_id: core.ID = device[CONF_ID] if not device_id.id: continue