mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
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:
parent
8b947e2fab
commit
ed1c98e590
2
homeassistant/external/wink/pywink.py
vendored
2
homeassistant/external/wink/pywink.py
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user