mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02: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:
@@ -77,7 +77,8 @@ def setup(hass, config):
|
|||||||
devices = [(device.host, device) for device in pywemo.discover_devices()]
|
devices = [(device.host, device) for device in pywemo.discover_devices()]
|
||||||
|
|
||||||
# Add static devices from the config file
|
# 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:
|
for address, device in devices:
|
||||||
port = pywemo.ouimeaux_device.probe_wemo(address)
|
port = pywemo.ouimeaux_device.probe_wemo(address)
|
||||||
|
Reference in New Issue
Block a user