1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Bump tooling to target Python version 3.11 (#4666)

This commit is contained in:
Stefan Agner
2023-11-03 12:02:55 +01:00
committed by GitHub
parent a0c12e7228
commit 38d5d2307f
19 changed files with 23 additions and 30 deletions

View File

@@ -1,5 +1,4 @@
"""OS support on supervisor."""
import asyncio
from collections.abc import Awaitable
import logging
from pathlib import Path
@@ -114,7 +113,7 @@ class OSManager(CoreSysAttributes):
_LOGGER.info("Completed download of OTA update file %s", raucb)
except (aiohttp.ClientError, asyncio.TimeoutError) as err:
except (aiohttp.ClientError, TimeoutError) as err:
self.sys_supervisor.connectivity = False
raise HassOSUpdateError(
f"Can't fetch OTA update from {url}: {err!s}", _LOGGER.error