1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Rename custom_jinja to custom_templates (#90473)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Erik Montnemery
2023-03-29 21:58:25 +02:00
committed by GitHub
parent cf0550f5c2
commit 5bc9545b81
8 changed files with 27 additions and 27 deletions

View File

@@ -245,8 +245,8 @@ def test_iterating_domain_states(hass: HomeAssistant) -> None:
async def test_import(hass: HomeAssistant) -> None:
"""Test that imports work from the config/custom_jinja folder."""
await template.async_load_custom_jinja(hass)
"""Test that imports work from the config/custom_templates folder."""
await template.async_load_custom_templates(hass)
assert "test.jinja" in template._get_hass_loader(hass).sources
assert "inner/inner_test.jinja" in template._get_hass_loader(hass).sources
assert (
@@ -283,7 +283,7 @@ async def test_import(hass: HomeAssistant) -> None:
async def test_import_change(hass: HomeAssistant) -> None:
"""Test that a change in HassLoader results in updated imports."""
await template.async_load_custom_jinja(hass)
await template.async_load_custom_templates(hass)
to_test = template.Template(
"""
{% import 'test.jinja' as t %}