|
| None | __init__ (self, dict[str, str] sources) |
| |
| tuple[str, str|None, Callable[[], bool]|None] | get_source (self, jinja2.Environment environment, str template) |
| |
| dict[str, str] | sources (self) |
| |
| None | sources (self, dict[str, str] value) |
| |
An in-memory jinja loader that keeps track of templates that need to be reloaded.
Definition at line 2814 of file template.py.
◆ __init__()
| None homeassistant.helpers.template.HassLoader.__init__ |
( |
|
self, |
|
|
dict[str, str] |
sources |
|
) |
| |
Initialize an empty HassLoader.
Definition at line 2817 of file template.py.
◆ get_source()
| tuple[str, str | None, Callable[[], bool] | None] homeassistant.helpers.template.HassLoader.get_source |
( |
|
self, |
|
|
jinja2.Environment |
environment, |
|
|
str
|
template |
|
) |
| |
◆ sources() [1/2]
| dict[str, str] homeassistant.helpers.template.HassLoader.sources |
( |
|
self | ) |
|
◆ sources() [2/2]
| None homeassistant.helpers.template.HassLoader.sources |
( |
|
self, |
|
|
dict[str, str] |
value |
|
) |
| |
◆ _reload
| homeassistant.helpers.template.HassLoader._reload |
|
private |
◆ _sources
| homeassistant.helpers.template.HassLoader._sources |
|
private |
The documentation for this class was generated from the following file: