def _render_template() -> None:
    try:
        _render_with_context(self.template, compiled, **kwargs)
    except TimeoutError:
        pass
    except Exception:
        self._exc_info = sys.exc_info()
    finally:
        run_callback_threadsafe(self.hass.loop, finish_event.set)
def _render_template() -> None:
    try:
        _render_with_context(self.template, compiled, **kwargs)
    except TimeoutError:
        pass
    except Exception:
        self._exc_info = sys.exc_info()
    finally:
        run_callback_threadsafe(self.hass.loop, finish_event.set)