diff --git a/airos/base.py b/airos/base.py index bc0c5f4..7d4d191 100644 --- a/airos/base.py +++ b/airos/base.py @@ -241,7 +241,7 @@ async def _request_json( _LOGGER.error( "Request to %s failed with status %s: %s", url, err.status, err.message ) - if err.status == 401: + if err.status in [401, 403]: raise AirOSConnectionAuthenticationError from err raise AirOSConnectionSetupError from err except (TimeoutError, aiohttp.ClientError) as err: diff --git a/pyproject.toml b/pyproject.toml index e2f2ac3..72a3926 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "airos" -version = "0.5.1" +version = "0.5.2" license = "MIT" description = "Ubiquiti airOS module(s) for Python 3." readme = "README.md"