From fd2537b403819503e05cd15c702bed4395705ef0 Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Sun, 17 Jun 2018 13:41:08 +0200 Subject: [PATCH] Fix return value of platform light example (#30) --- docs/creating_platform_example_light.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/creating_platform_example_light.md b/docs/creating_platform_example_light.md index 5344b767..88ba4359 100644 --- a/docs/creating_platform_example_light.md +++ b/docs/creating_platform_example_light.md @@ -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())