File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " airos"
7- version = " 0.5.4a1 "
7+ version = " 0.5.4a2 "
88license = " MIT"
99description = " Ubiquiti airOS module(s) for Python 3."
1010readme = " README.md"
You can’t perform that action at this time.
0 commit comments