mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
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:
parent
8e9c557a2c
commit
5a126736e4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user