diff --git a/esphome/core/config.py b/esphome/core/config.py index be6e2cae95..c246e8dc2e 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -529,7 +529,7 @@ async def to_code(config: ConfigType) -> None: cg.add_define("USE_DEVICES") # Process additional areas from the areas list - areas: list[dict[str, str]] + areas: list[dict[str, str | core.ID]] if areas := config[CONF_AREAS]: for area_conf in areas: area_id: core.ID = area_conf[CONF_ID]