mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Fix jinja2 DeprecationWarnings (#97728)
This commit is contained in:
@@ -1903,7 +1903,7 @@ async def test_track_template_result_with_wildcard(hass: HomeAssistant) -> None:
|
||||
template_complex_str = r"""
|
||||
|
||||
{% for state in states %}
|
||||
{% if state.entity_id | regex_match('.*\.office_') %}
|
||||
{% if state.entity_id | regex_match('.*\\.office_') %}
|
||||
{{ state.entity_id }}={{ state.state }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user