mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 12:15:33 +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:
parent
1511a6ebcd
commit
657fd9d0d5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user