Upgrade to aiohttp 3 (#12921)
* Upgrade aiohttp to 3.0.6 * Fix tests * Fix aiohttp client stream test * Lint * Remove drain
This commit is contained in:
parent
e5c4bba906
commit
6a5c7ef43f
11 changed files with 65 additions and 65 deletions
|
@ -131,8 +131,7 @@ class APIEventStream(HomeAssistantView):
|
|||
msg = "data: {}\n\n".format(payload)
|
||||
_LOGGER.debug('STREAM %s WRITING %s', id(stop_obj),
|
||||
msg.strip())
|
||||
response.write(msg.encode("UTF-8"))
|
||||
yield from response.drain()
|
||||
yield from response.write(msg.encode("UTF-8"))
|
||||
except asyncio.TimeoutError:
|
||||
yield from to_write.put(STREAM_PING_PAYLOAD)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue