Skip to content

Commit 5ad5f8b

Browse files
committed
Correct matching
1 parent f68f572 commit 5ad5f8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

airos/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ async def _request_json(
220220
request_headers.update(headers)
221221

222222
try:
223-
if url not in self._login_urls and not self.connected:
223+
if url not in self._login_urls.values() and not self.connected:
224224
_LOGGER.error("Not connected, login first")
225225
raise AirOSDeviceConnectionError from None
226226

@@ -236,7 +236,7 @@ async def _request_json(
236236
_LOGGER.debug("Successfully fetched JSON from %s", url)
237237

238238
# If this is the login request, we need to store the new auth data
239-
if url in self._login_urls:
239+
if url in self._login_urls.values():
240240
self._store_auth_data(response)
241241
self.connected = True
242242

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.5.4a1"
7+
version = "0.5.4a2"
88
license = "MIT"
99
description = "Ubiquiti airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)