mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Add jinja_pass_arg to reserved template names (#107822)
This commit is contained in:
parent
46a06bc8cd
commit
fb0dad66db
@ -97,7 +97,12 @@ _RE_JINJA_DELIMITERS = re.compile(r"\{%|\{\{|\{#")
|
||||
# Match "simple" ints and floats. -1.0, 1, +5, 5.0
|
||||
_IS_NUMERIC = re.compile(r"^[+-]?(?!0\d)\d*(?:\.\d*)?$")
|
||||
|
||||
_RESERVED_NAMES = {"contextfunction", "evalcontextfunction", "environmentfunction"}
|
||||
_RESERVED_NAMES = {
|
||||
"contextfunction",
|
||||
"evalcontextfunction",
|
||||
"environmentfunction",
|
||||
"jinja_pass_arg",
|
||||
}
|
||||
|
||||
_GROUP_DOMAIN_PREFIX = "group."
|
||||
_ZONE_DOMAIN_PREFIX = "zone."
|
||||
|
Loading…
x
Reference in New Issue
Block a user