Wink API is weird. If you delete a device from their API, they dont delete it. They just "hide" it
This commit is contained in:
1 parent
8b947e2fab
commit
ed1c98e590
1 file changed
+1
-1
+1
-1
@@ -375,7 +375,7 @@ def get_devices(filter, constructor):
|
||||
devices = []
|
||||
for item in items:
|
||||
id = item.get(filter)
|
||||
if id is not None:
|
||||
if (id is not None and item.get("hidden_at") is None):
|
||||
devices.append(constructor(item))
|
||||
|
||||
return devices
|
||||
|
||||
Reference in new issue
Block a user