1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-12 00:02:21 +01:00
This commit is contained in:
J. Nick Koston
2025-06-22 13:44:05 +02:00
parent d7eae1c1a0
commit 17bf533ed7

View File

@@ -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