summaryrefslogtreecommitdiff
path: root/netdisco/discoverables/hp_printer.py
blob: b4c613131ae5b16f826f055a52301a66dfdb3313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Discover HP Printers"""
from . import MDNSDiscoverable


class Discoverable(MDNSDiscoverable):
    """Support for the discovery of HP Printers"""

    def __init__(self, nd):
        """Initialize the HP Printer discovery"""
        super(Discoverable, self).__init__(nd, '_printer._tcp.local.')

    def get_entries(self):
        return self.find_by_device_name('HP ')