diff --git a/esphome/config_validation.py b/esphome/config_validation.py index 054ee194c1..359b9ba88e 100644 --- a/esphome/config_validation.py +++ b/esphome/config_validation.py @@ -1240,7 +1240,7 @@ def enum(mapping, **kwargs): return validator -LAMBDA_ENTITY_ID_PROG = re.compile(r"id\(\s*([a-zA-Z0-9_]+\.[.a-zA-Z0-9_]+)\s*\)") +LAMBDA_ENTITY_ID_PROG = re.compile(r"\Wid\(\s*([a-zA-Z0-9_]+\.[.a-zA-Z0-9_]+)\s*\)") def lambda_(value):