Fix return value of platform light example (#30)

This commit is contained in:
Martin Hjelmare 2018-06-17 13:41:08 +02:00 committed by Paulus Schoutsen
parent b01ae756e1
commit fd2537b403

View File

@ -57,7 +57,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
# Verify that passed in configuration works
if not hub.is_valid_login():
_LOGGER.error("Could not connect to AwesomeLight hub")
return False
return
# Add devices
add_devices(AwesomeLight(light) for light in hub.lights())