def render(self, variables: TemplateVarsType=None, parse_result: bool=True, limited: bool=False, **kwargs: Any) -> Any:
    'Render given template.\n\n        If limited is True, the template is not allowed to access any function or filter depending on hass or the state machine.\n        '
    if self.is_static:
        if ((not parse_result) or self.hass.config.legacy_templates):
            return self.template
        return self._parse_result(self.template)
    return run_callback_threadsafe(self.hass.loop, partial(self.async_render, variables, parse_result, limited, **kwargs)).result()
Render given template.

If limited is True, the template is not allowed to access any function or filter depending on hass or the state machine.
def render(self, variables: TemplateVarsType=None, parse_result: bool=True, limited: bool=False, **kwargs: Any) -> Any:
    'Render given template.\n\n        If limited is True, the template is not allowed to access any function or filter depending on hass or the state machine.\n        '
    if self.is_static:
        if ((not parse_result) or self.hass.config.legacy_templates):
            return self.template
        return self._parse_result(self.template)
    return run_callback_threadsafe(self.hass.loop, partial(self.async_render, variables, parse_result, limited, **kwargs)).result()