mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +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
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ def enum(mapping, **kwargs):
|
||||||
return validator
|
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):
|
def lambda_(value):
|
||||||
|
|
Loading…
Reference in a new issue