diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index c49e287..fdd241a 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -78,7 +78,7 @@ class MegaView(HomeAssistantView): template.hass = hass ret = template.async_render(data) _LOGGER.debug('response %s', ret) - ret = Response(body='', content_type='text/plain', headers={'Server': 's', 'Date': 'n'}) + Response(body='', content_type='text/plain', headers={'Server': 's', 'Date': 'n'}) await hub.request(cmd=ret) return ret