From 7e02797be82f8703de0fabc420adca799d5be7af Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 18 Feb 2021 11:58:33 +0300 Subject: [PATCH] fix http response --- custom_components/mega/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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