From fb0dad66dbb259bdc8c5f91140cbf17948d36d53 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 11 Jan 2024 22:34:49 -1000 Subject: [PATCH] Add jinja_pass_arg to reserved template names (#107822) --- homeassistant/helpers/template.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/template.py b/homeassistant/helpers/template.py index db4e333fa1a..79ef6137f52 100644 --- a/homeassistant/helpers/template.py +++ b/homeassistant/helpers/template.py @@ -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."