Skip to content

Commit

Permalink
Wink API is weird. If you delete a device from their API, they dont d…
Browse files Browse the repository at this point in the history
…elete it. They just "hide" it
  • Loading branch information
kangaroo committed Jan 22, 2015
1 parent 8b947e2 commit ed1c98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/external/wink/pywink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed1c98e

Please sign in to comment.