mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Merge pull request #1431 from kk7ds/fix-wemo-fix
Gracefully handle having no wemo config section
This commit is contained in:
@@ -78,7 +78,7 @@ def setup(hass, config):
|
||||
|
||||
# Add static devices from the config file
|
||||
devices.extend((address, None)
|
||||
for address in config['wemo'].get('static', []))
|
||||
for address in config.get(DOMAIN, {}).get('static', []))
|
||||
|
||||
for address, device in devices:
|
||||
port = pywemo.ouimeaux_device.probe_wemo(address)
|
||||
|
Reference in New Issue
Block a user