'Render given template.'

def render(self, variables=None, **kwargs):

    if (variables is not None):
        kwargs.update(variables)
    return run_callback_threadsafe(self.hass.loop, self.async_render, kwargs).result()
