Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Add discovery of Huawei routers (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and balloob committed Feb 20, 2018
1 parent 44feead commit f2604a0
Show file tree
Hide file tree
Showing 2 changed files with 14 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 @@ -7,6 +7,7 @@
PMS = 'plex_mediaserver'
LMS = 'logitech_mediaserver'
ASUS_ROUTER = "asus_router"
HUAWEI_ROUTER = "huawei_router"
NETGEAR_ROUTER = "netgear_router"
SONOS = "sonos"
PANASONIC_VIERA = "panasonic_viera"
Expand Down
13 changes: 13 additions & 0 deletions netdisco/discoverables/huawei_router.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""Discover Huawei routers."""
from . import SSDPDiscoverable


class Discoverable(SSDPDiscoverable):
"""Add support for discovering Huawei routers."""

def get_entries(self):
"""Get all the Huawei uPnP entries."""
return self.find_by_device_description({
"manufacturer": "Huawei Technologies Co., Ltd.",
"deviceType": "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
})

0 comments on commit f2604a0

Please sign in to comment.