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

4 years ago
  1. """Discover Wink hub devices."""
  2. from . import SSDPDiscoverable
  3. class Discoverable(SSDPDiscoverable):
  4. """Add support for discovering Wink hub devices."""
  5. def get_entries(self):
  6. """Return all Wink entries."""
  7. results = []
  8. results.extend(self.find_by_st('urn:wink-com:device:hub2:2'))
  9. results.extend(self.find_by_st('urn:wink-com:device:hub:2'))
  10. results.extend(self.find_by_st('urn:wink-com:device:relay:2'))
  11. return results