diff --git a/netdisco/const.py b/netdisco/const.py index 6076a013..c674ba8e 100644 --- a/netdisco/const.py +++ b/netdisco/const.py @@ -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" diff --git a/netdisco/discoverables/huawei_router.py b/netdisco/discoverables/huawei_router.py new file mode 100644 index 00000000..7f1bb3d5 --- /dev/null +++ b/netdisco/discoverables/huawei_router.py @@ -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" + })