From cc3e6ec6fd22a34b52ab352a47f2dec3f9bcedd3 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 20 Jul 2018 22:28:56 +0200 Subject: [PATCH] Fix stream error with aiohttp >= 3 (#579) * Fix stream error with aiohttp >= 3 * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py * Update proxy.py --- hassio/api/proxy.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hassio/api/proxy.py b/hassio/api/proxy.py index 7abd31ffa..24c4b72aa 100644 --- a/hassio/api/proxy.py +++ b/hassio/api/proxy.py @@ -79,14 +79,10 @@ class APIProxy(CoreSysAttributes): while True: data = await client.content.read(10) if not data: - await response.write_eof() break await response.write(data) except aiohttp.ClientError: - await response.write_eof() - - except asyncio.CancelledError: pass finally: