@@ -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 :
0 commit comments