File: frontier_silicon.py

package info (click to toggle)
python-netdisco 2.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 508 kB
  • sloc: python: 1,532; xml: 247; sh: 10; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
"""Discover frontier silicon devices."""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
    """Add support for discovering frontier silicon devices."""

    def get_entries(self):
        """Get all the frontier silicon uPnP entries."""
        return [entry for entry in self.netdis.ssdp.all()
                if entry.st and 'fsapi' in entry.st and
                'urn:schemas-frontier-silicon-com' in entry.st]