mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 02:26:30 +00:00
Set timeout of 10min for download OTA (#1505)
This commit is contained in:
parent
aa1f08fe8a
commit
c33d31996d
@ -84,9 +84,10 @@ class HassOS(CoreSysAttributes):
|
|||||||
url = URL_HASSOS_OTA.format(version=version, board=self.board)
|
url = URL_HASSOS_OTA.format(version=version, board=self.board)
|
||||||
raucb = Path(self.sys_config.path_tmp, f"hassos-{version}.raucb")
|
raucb = Path(self.sys_config.path_tmp, f"hassos-{version}.raucb")
|
||||||
|
|
||||||
|
_LOGGER.info("Fetch OTA update from %s", url)
|
||||||
try:
|
try:
|
||||||
_LOGGER.info("Fetch OTA update from %s", url)
|
timeout = aiohttp.ClientTimeout(total=600)
|
||||||
async with self.sys_websession.get(url) as request:
|
async with self.sys_websession.get(url, timeout=timeout) as request:
|
||||||
if request.status != 200:
|
if request.status != 200:
|
||||||
raise HassOSUpdateError()
|
raise HassOSUpdateError()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user