From 5a126736e40b001ceb262403d5d76b341386ba4b Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Sat, 27 Feb 2016 20:11:32 -0800 Subject: [PATCH] Fix static configured wemo devices The new wemo code was pulling 'static' from the global config instead of the wemo component config. --- homeassistant/components/wemo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/wemo.py b/homeassistant/components/wemo.py index 9dc144266a8..e7fb426fe37 100644 --- a/homeassistant/components/wemo.py +++ b/homeassistant/components/wemo.py @@ -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)