mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-09 10:26:30 +00:00
Fix return value of platform light example (#30)
This commit is contained in:
parent
b01ae756e1
commit
fd2537b403
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user