diff --git a/homeassistant/helpers/aiohttp_client.py b/homeassistant/helpers/aiohttp_client.py index fe995222c67..3e1e45e5981 100644 --- a/homeassistant/helpers/aiohttp_client.py +++ b/homeassistant/helpers/aiohttp_client.py @@ -129,7 +129,7 @@ async def async_aiohttp_proxy_stream( await response.prepare(request) try: - while True: + while hass.is_running: with async_timeout.timeout(timeout): data = await stream.read(buffer_size)