(self, templatefile, location=None, repository=None, message=None)
return template.render(
            {
                "hacs": self,
                "location": location,
                "repository": repository,
                "message": message,
                "timestamp": time(),
            }
        )
Render a template file.
Render a template file.
Render a template file .
def render(self, templatefile, location=None, repository=None, message=None):
        """Render a template file."""
        loader = Environment(loader=PackageLoader("custom_components.hacs.frontend"))
        template = loader.get_template(templatefile + ".html")
        return template.render(
            {
                "hacs": self,
                "location": location,
                "repository": repository,
                "message": message,
                "timestamp": time(),
            }
        )
def render ( self , templatefile , location = None , repository = None , message = None ) : loader = Environment ( loader = PackageLoader ( "custom_components.hacs.frontend" ) ) template = loader . get_template ( templatefile + ".html" ) return template . render ( { "hacs" : self , "location" : location , "repository" : repository , "message" : message , "timestamp" : time ( ) , } )