File: xbox_smartglass.py

package info (click to toggle)
python-netdisco 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 516 kB
  • sloc: python: 1,550; xml: 247; sh: 10; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Discover Xbox SmartGlass devices."""
from . import BaseDiscoverable


class Discoverable(BaseDiscoverable):
    """Add support for discovering a Xbox SmartGlass device."""

    def __init__(self, netdis):
        """Initialize the Xbox SmartGlass discovery."""
        self._netdis = netdis

    def get_entries(self):
        """Get all the Xbox SmartGlass details."""
        return self._netdis.xbox_smartglass.entries