"""Discover Openhome devices."""
from . import SSDPDiscoverable


# pylint: disable=too-few-public-methods
class Discoverable(SSDPDiscoverable):
    """Add support for discovering Openhome compliant devices."""

    def info_from_entry(self, entry):
        """Return the most important info from a uPnP entry."""
        return (entry.description['device']['friendlyName'],
                entry.values['location'])

    def get_entries(self):
        """Get all the Openhome compliant device uPnP entries."""
        return self.find_by_st("urn:av-openhome-org:service:Product:2")

Add openhome devices as discoverable (#86)