Skip to content

Commit 8c34392

Browse files
committed
Explicit timeout and version bump
1 parent 5ad1754 commit 8c34392

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

airos/airos8.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def login(self) -> bool:
186186
log = f"Login failed with status {response.status}. Full Response: {response.text}"
187187
_LOGGER.error(log)
188188
raise AirOSConnectionAuthenticationError from None
189-
except (TimeoutError, aiohttp.ClientError) as err:
189+
except (TimeoutError, aiohttp.client_exceptions.ClientError) as err:
190190
_LOGGER.exception("Error during login")
191191
raise AirOSDeviceConnectionError from err
192192
except asyncio.CancelledError:
@@ -302,7 +302,7 @@ async def status(self) -> AirOSData:
302302
response_text,
303303
)
304304
raise AirOSDeviceConnectionError
305-
except (TimeoutError, aiohttp.ClientError) as err:
305+
except (TimeoutError, aiohttp.client_exceptions.ClientError) as err:
306306
_LOGGER.exception("Status API call failed: %s", err)
307307
raise AirOSDeviceConnectionError from err
308308
except asyncio.CancelledError:
@@ -340,7 +340,7 @@ async def stakick(self, mac_address: str = None) -> bool:
340340
log = f"Unable to restart connection response status {response.status} with {response_text}"
341341
_LOGGER.error(log)
342342
return False
343-
except (TimeoutError, aiohttp.ClientError) as err:
343+
except (TimeoutError, aiohttp.client_exceptions.ClientError) as err:
344344
_LOGGER.exception("Error during call to reconnect remote: %s", err)
345345
raise AirOSDeviceConnectionError from err
346346
except asyncio.CancelledError:
@@ -379,7 +379,7 @@ async def provmode(self, active: bool = False) -> bool:
379379
log = f"Unable to change provisioning mode response status {response.status} with {response_text}"
380380
_LOGGER.error(log)
381381
return False
382-
except (TimeoutError, aiohttp.ClientError) as err:
382+
except (TimeoutError, aiohttp.client_exceptions.ClientError) as err:
383383
_LOGGER.exception("Error during call to change provisioning mode: %s", err)
384384
raise AirOSDeviceConnectionError from err
385385
except asyncio.CancelledError:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airos"
7-
version = "0.2.8a0"
7+
version = "0.2.8a4"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)