1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 17:23:45 +01:00

[core] Fix regex for lambda id() replacement (#9975)

This commit is contained in:
Clyde Stubbs
2025-07-31 08:56:43 +10:00
committed by GitHub
parent 110eac4f09
commit 4b7f3355ea
2 changed files with 8 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ class TimePeriodMinutes(TimePeriod):
pass
LAMBDA_PROG = re.compile(r"id\(\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\)(\.?)")
LAMBDA_PROG = re.compile(r"\bid\(\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*\)(\.?)")
class Lambda: