Fix warning in template extensions tests (#152425)

This commit is contained in:
Marc Mueller
2025-09-16 13:30:36 +02:00
committed by GitHub
parent 44a95242dc
commit 0254285285

View File

@@ -193,7 +193,7 @@ def test_regex_with_non_string_input(hass: HomeAssistant) -> None:
"""Test regex functions with non-string input (automatic conversion)."""
# Test with integer
tpl = template.Template(
"""
r"""
{{ 12345 | regex_match('\\d+') }}
""",
hass,
@@ -202,7 +202,7 @@ def test_regex_with_non_string_input(hass: HomeAssistant) -> None:
# Test with list (string conversion)
tpl = template.Template(
"""
r"""
{{ [1, 2, 3] | regex_search('\\d') }}
""",
hass,