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.

13 lines
374 B

4 years ago
  1. """Discover HP Printers"""
  2. from . import MDNSDiscoverable
  3. class Discoverable(MDNSDiscoverable):
  4. """Support for the discovery of HP Printers"""
  5. def __init__(self, nd):
  6. """Initialize the HP Printer discovery"""
  7. super(Discoverable, self).__init__(nd, '_printer._tcp.local.')
  8. def get_entries(self):
  9. return self.find_by_device_name('HP ')