Fix jinja2 DeprecationWarnings (#97728)

pull/97701/head
Marc Mueller 2023-08-04 11:25:08 +02:00 committed by GitHub
parent c33e3ce212
commit f39a35c4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 %}

View File

@ -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 %}