@callback
def async_render_to_info(self, variables: TemplateVarsType=None, strict: bool=False, **kwargs: Any) -> RenderInfo:
    'Render the template and collect an entity filter.'
    assert (self.hass and (_RENDER_INFO not in self.hass.data))
    render_info = RenderInfo(self)
    if self.is_static:
        render_info._result = self.template.strip()
        render_info._freeze_static()
        return render_info
    self.hass.data[_RENDER_INFO] = render_info
    try:
        render_info._result = self.async_render(variables, strict=strict, **kwargs)
    except TemplateError as ex:
        render_info.exception = ex
    finally:
        del self.hass.data[_RENDER_INFO]
    render_info._freeze()
    return render_info
Render the template and collect an entity filter.
@callback
def async_render_to_info(self, variables: TemplateVarsType=None, strict: bool=False, **kwargs: Any) -> RenderInfo:
    
    assert (self.hass and (_RENDER_INFO not in self.hass.data))
    render_info = RenderInfo(self)
    if self.is_static:
        render_info._result = self.template.strip()
        render_info._freeze_static()
        return render_info
    self.hass.data[_RENDER_INFO] = render_info
    try:
        render_info._result = self.async_render(variables, strict=strict, **kwargs)
    except TemplateError as ex:
        render_info.exception = ex
    finally:
        del self.hass.data[_RENDER_INFO]
    render_info._freeze()
    return render_info