diff --git a/supervisor/updater.py b/supervisor/updater.py index 89b500a6d..1003ff282 100644 --- a/supervisor/updater.py +++ b/supervisor/updater.py @@ -189,7 +189,13 @@ class Updater(FileConfiguration, CoreSysAttributes): # Get data try: _LOGGER.info("Fetching update data from %s", url) - async with self.sys_websession.get(url, timeout=10) as request: + timeout = aiohttp.ClientTimeout(total=10) + async with self.sys_websession.get(url, timeout=timeout) as request: + if request.status != 200: + raise UpdaterError( + f"Fetching version from {url} response with {request.status}", + _LOGGER.warning, + ) data = await request.read() except (aiohttp.ClientError, asyncio.TimeoutError) as err: