mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Don't match words containing "id" (#4265)
Co-authored-by: Samuel Sieb <samuel@sieb.net> fixes https://github.com/esphome/issues/issues/3507
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user