From d5dcb8f140c081dacaff7cf72fd3d246d7dd07dc Mon Sep 17 00:00:00 2001 From: Andre Lengwenus Date: Mon, 21 Jan 2019 00:49:28 +0100 Subject: [PATCH] Add discovery_info check to LCN light platform (#20280) * Added discovery_info check to LCN light platform * Removed whitespaces --- homeassistant/components/light/lcn.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/light/lcn.py b/homeassistant/components/light/lcn.py index f64eadaca5d..b9457b7b7d9 100644 --- a/homeassistant/components/light/lcn.py +++ b/homeassistant/components/light/lcn.py @@ -19,6 +19,9 @@ DEPENDENCIES = ['lcn'] async def async_setup_platform(hass, hass_config, async_add_entities, discovery_info=None): """Set up the LCN light platform.""" + if discovery_info is None: + return + import pypck devices = []