diff --git a/homeassistant/components/discovery.py b/homeassistant/components/discovery.py index 7ba66f9aba6..cb2e2d3c780 100644 --- a/homeassistant/components/discovery.py +++ b/homeassistant/components/discovery.py @@ -19,7 +19,7 @@ from homeassistant.const import ( DOMAIN = "discovery" DEPENDENCIES = [] -REQUIREMENTS = ['netdisco>=0.2'] +REQUIREMENTS = ['netdisco>=0.3'] SCAN_INTERVAL = 300 # seconds diff --git a/homeassistant/components/light/hue.py b/homeassistant/components/light/hue.py index f012d160b7f..c3b28ec1dd6 100644 --- a/homeassistant/components/light/hue.py +++ b/homeassistant/components/light/hue.py @@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): return if discovery_info is not None: - host = urlparse(discovery_info).hostname + host = urlparse(discovery_info[1]).hostname else: host = config.get(CONF_HOST, None) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index 1614db02653..d133191e6db 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -18,7 +18,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): import pywemo.discovery as discovery if discovery_info is not None: - device = discovery.device_from_description(discovery_info) + device = discovery.device_from_description(discovery_info[2]) if device: add_devices_callback([WemoSwitch(device)]) diff --git a/requirements.txt b/requirements.txt index 88552844823..20d1d72b47c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -84,7 +84,7 @@ https://github.com/theolind/pymysensors/archive/master.zip#egg=pymysensors-0.1 pynetgear>=0.1 # Netdisco (discovery) -netdisco>=0.2 +netdisco>=0.3 # Wemo (switch.wemo) pywemo>=0.2