From 42ab726075c451f777121279cc819368421c0a2f Mon Sep 17 00:00:00 2001 From: ruby~ Date: Thu, 11 Jan 2024 23:56:26 +0900 Subject: [PATCH] check for blank LocalCredentials instead of None (#19) --- libdyson/cloud/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdyson/cloud/account.py b/libdyson/cloud/account.py index c2f0d0b..1def0d8 100644 --- a/libdyson/cloud/account.py +++ b/libdyson/cloud/account.py @@ -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