Public Member Functions | |
| None | __exit__ (self, type[BaseException]|None exc_type, BaseException|None exc_value, TracebackType|None traceback) |
| None | set_template (self, str template_str, str action) |
Context manager to store template being parsed or rendered in a ContextVar.
Definition at line 2707 of file template.py.
| None homeassistant.helpers.template.TemplateContextManager.__exit__ | ( | self, | |
| type[BaseException] | None | exc_type, | ||
| BaseException | None | exc_value, | ||
| TracebackType | None | traceback | ||
| ) |
Raise any exception triggered within the runtime context.
Definition at line 2714 of file template.py.
| None homeassistant.helpers.template.TemplateContextManager.set_template | ( | self, | |
| str | template_str, | ||
| str | action | ||
| ) |
Store template being parsed or rendered in a Contextvar to aid error handling.
Definition at line 2710 of file template.py.