Fix jinja2 DeprecationWarnings (#97728)
parent
c33e3ce212
commit
f39a35c4ef
|
@ -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 %}
|
||||
|
|
|
@ -3437,7 +3437,7 @@ async def test_async_render_to_info_with_wildcard_matching_entity_id(
|
|||
template_complex_str = r"""
|
||||
|
||||
{% for state in states.cover %}
|
||||
{% if state.entity_id | regex_match('.*\.office_') %}
|
||||
{% if state.entity_id | regex_match('.*\\.office_') %}
|
||||
{{ state.entity_id }}={{ state.state }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue