core/tests/components/homeassistant
David Poll 7284af6a3e
Add an in-memory-preloading loader for Jinja imports (#88850)
* Adds a loader to enable jinja imports.

* Switch to in-memory

* Move loading custom_jinja off of the event loop

* Raise TemplateNotFound if template doesn't exist

* Fix docstring

* Adds a service to reload custom jinja

* Remove IO from test setup

* Improve coverage and small refactor

* Incorporate feedback and use .jinja extension

* Check the loaded sources in test.

* Incorporate PR feedback.

* Update homeassistant/helpers/template.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-13 11:00:05 +01:00
..
triggers Add type hints to integration tests (part 2) (#88493) 2023-02-21 09:25:05 +01:00
__init__.py
test_init.py Add an in-memory-preloading loader for Jinja imports (#88850) 2023-03-13 11:00:05 +01:00
test_scene.py Add type hints to integration tests (h-i) (#87703) 2023-02-08 18:12:56 +01:00