You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
481 B

"""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