fix http response

This commit is contained in:
Andrey
2021-02-18 11:58:33 +03:00
parent 035bdebf64
commit 7e02797be8

View File

@@ -78,7 +78,7 @@ class MegaView(HomeAssistantView):
template.hass = hass template.hass = hass
ret = template.async_render(data) ret = template.async_render(data)
_LOGGER.debug('response %s', ret) _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) await hub.request(cmd=ret)
return ret return ret