Skip to content

Commit

Permalink
check for blank LocalCredentials instead of None (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyroobs authored Jan 11, 2024
1 parent 1e8b946 commit 42ab726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdyson/cloud/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def devices(self) -> List[DysonDeviceInfo]:
devices = []
response = self.request("GET", API_PATH_DEVICES)
for raw in response.json():
if raw.get("LocalCredentials") is None:
if not raw.get("LocalCredentials"):
# Lightcycle lights don't have LocalCredentials.
# They're not supported so just skip.
# See https://github.com/shenxn/libdyson/issues/2 for more info
Expand Down

0 comments on commit 42ab726

Please sign in to comment.