mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix jinja2 DeprecationWarnings (#97728)
This commit is contained in:
parent
c33e3ce212
commit
f39a35c4ef
@ -1903,7 +1903,7 @@ async def test_track_template_result_with_wildcard(hass: HomeAssistant) -> None:
|
|||||||
template_complex_str = r"""
|
template_complex_str = r"""
|
||||||
|
|
||||||
{% for state in states %}
|
{% for state in states %}
|
||||||
{% if state.entity_id | regex_match('.*\.office_') %}
|
{% if state.entity_id | regex_match('.*\\.office_') %}
|
||||||
{{ state.entity_id }}={{ state.state }}
|
{{ state.entity_id }}={{ state.state }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -3437,7 +3437,7 @@ async def test_async_render_to_info_with_wildcard_matching_entity_id(
|
|||||||
template_complex_str = r"""
|
template_complex_str = r"""
|
||||||
|
|
||||||
{% for state in states.cover %}
|
{% for state in states.cover %}
|
||||||
{% if state.entity_id | regex_match('.*\.office_') %}
|
{% if state.entity_id | regex_match('.*\\.office_') %}
|
||||||
{{ state.entity_id }}={{ state.state }}
|
{{ state.entity_id }}={{ state.state }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user