Fix static configured wemo devices

The new wemo code was pulling 'static' from the global config instead of
the wemo component config.
This commit is contained in:
Dan Smith 2016-02-27 20:11:32 -08:00
parent 8e9c557a2c
commit 5a126736e4

View File

@ -77,7 +77,8 @@ def setup(hass, config):
devices = [(device.host, device) for device in pywemo.discover_devices()]
# Add static devices from the config file
devices.extend((address, None) for address in config.get('static', []))
devices.extend((address, None)
for address in config['wemo'].get('static', []))
for address, device in devices:
port = pywemo.ouimeaux_device.probe_wemo(address)