Skip to content

Commit

Permalink
Add Ziggo Mediabox XL support (home-assistant-libs#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
b10m authored and balloob committed Nov 17, 2017
1 parent 34212d1 commit 6710dc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions netdisco/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
APPLE_TV = "apple_tv"
HARMONY = "harmony"
BLUESOUND = "bluesound"
ZIGGO_MEDIABOX_XL = "ziggo_mediabox_xl"

ATTR_NAME = 'name'
ATTR_HOST = 'host'
Expand Down
12 changes: 12 additions & 0 deletions netdisco/discoverables/ziggo_mediabox_xl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""Discover Ziggo Mediabox XL devices."""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
"""Add support for discovering Ziggo Mediabox XL devices."""

def get_entries(self):
"""Return all Ziggo (UPC) Mediabox XL entries."""
return self.find_by_device_description(
{'modelDescription': 'UPC Hzn Gateway',
'deviceType': 'urn:schemas-upnp-org:device:RemoteUIServer:2'})

0 comments on commit 6710dc5

Please sign in to comment.