From 657fd9d0d5e59f55b9eac9e99efdeeec97aab5c1 Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Mon, 9 Jan 2023 16:54:15 -0800 Subject: [PATCH] Don't match words containing "id" (#4265) Co-authored-by: Samuel Sieb fixes https://github.com/esphome/issues/issues/3507 --- esphome/config_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):