Skip to content

Commit 7b56894

Browse files
committed
Add login failed
1 parent 2e9ef4e commit 7b56894

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

airos/airos8.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ async def login(self) -> bool:
100100
data=post_data,
101101
headers=login_request_headers,
102102
) as response:
103+
if response.status == 403:
104+
logger.error("Authentication denied.")
105+
raise ConnectionAuthenticationError from None
103106
if not response.cookies:
104107
logger.exception("Empty cookies after login, bailing out.")
105108
raise ConnectionSetupError from None

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.1.6"
7+
version = "0.1.7"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)