Skip to content

Commit 82f9671

Browse files
relic-seFoamyGuy
andauthored
Fix credentials type check
Co-authored-by: foamyguy <[email protected]>
1 parent c0bb3fc commit 82f9671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_portalbase/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def connect(self, max_attempts=10):
388388

389389
self._wifi_credentials = list(
390390
filter(
391-
lambda credentials: isinstance(credentials, (list, tuple))
391+
lambda credentials: isinstance(credentials, dict)
392392
and "ssid" in credentials
393393
and "password" in credentials
394394
and isinstance(credentials["ssid"], str)

0 commit comments

Comments
 (0)