From 17bf533ed7955c3dca702b9a1282b7f3d54ac5b8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Jun 2025 13:44:05 +0200 Subject: [PATCH] simplify --- esphome/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/config.py b/esphome/core/config.py index 74b2d0daa4..a232746e19 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -69,7 +69,7 @@ Area = cg.esphome_ns.class_("Area") VALID_INCLUDE_EXTS = {".h", ".hpp", ".tcc", ".ino", ".cpp", ".c"} -def validate_area_config(value): +def validate_area_config(value: dict | str) -> dict[str, str | core.ID]: """Convert legacy string area to structured format.""" if isinstance(value, str): # Legacy string format - convert to structured format