Skip to content

Commit

Permalink
Update netdisco to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Aug 24, 2015
1 parent 517d4b3 commit e917479
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

DOMAIN = "discovery"
DEPENDENCIES = []
REQUIREMENTS = ['netdisco>=0.2']
REQUIREMENTS = ['netdisco>=0.3']

SCAN_INTERVAL = 300 # seconds

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/light/hue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/switch/wemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e917479

Please sign in to comment.