Skip to content

Commit

Permalink
Add UPnP/IGD discoverable (home-assistant-libs#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman authored and balloob committed Sep 3, 2018
1 parent 1323e06 commit 7c0e48f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions netdisco/discoverables/igd.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Discover DLNA services."""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
"""Add support for discovering IGD services."""

def get_entries(self):
"""Get all the IGD service uPnP entries."""
return \
self.find_by_st(
"urn:schemas-upnp-org:device:InternetGatewayDevice:1") + \
self.find_by_st(
"urn:schemas-upnp-org:device:InternetGatewayDevice:2")

0 comments on commit 7c0e48f

Please sign in to comment.