diff options
Diffstat (limited to 'netdisco/discoverables/wink.py')
-rw-r--r-- | netdisco/discoverables/wink.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/netdisco/discoverables/wink.py b/netdisco/discoverables/wink.py new file mode 100644 index 0000000..9e6833f --- /dev/null +++ b/netdisco/discoverables/wink.py @@ -0,0 +1,14 @@ +"""Discover Wink hub devices.""" +from . import SSDPDiscoverable + + +class Discoverable(SSDPDiscoverable): + """Add support for discovering Wink hub devices.""" + + def get_entries(self): + """Return all Wink entries.""" + results = [] + results.extend(self.find_by_st('urn:wink-com:device:hub2:2')) + results.extend(self.find_by_st('urn:wink-com:device:hub:2')) + results.extend(self.find_by_st('urn:wink-com:device:relay:2')) + return results |