mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 21:40:16 +00:00
Fix warning in template extensions tests (#152425)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user