diff --git a/airos/airos8.py b/airos/airos8.py index 1b59ea2..085a4f8 100644 --- a/airos/airos8.py +++ b/airos/airos8.py @@ -100,6 +100,9 @@ async def login(self) -> bool: data=post_data, headers=login_request_headers, ) as response: + if response.status == 403: + logger.error("Authentication denied.") + raise ConnectionAuthenticationError from None if not response.cookies: logger.exception("Empty cookies after login, bailing out.") raise ConnectionSetupError from None diff --git a/pyproject.toml b/pyproject.toml index e8ab696..4dbd227 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "airos" -version = "0.1.6" +version = "0.1.7" license = "MIT" description = "Ubiquity airOS module(s) for Python 3." readme = "README.md"