From f6811a85b617a7ffd24f29efa20e2acf308e5c13 Mon Sep 17 00:00:00 2001
From: David Conley <conleydg@gmail.com>
Date: Fri, 22 Feb 2019 18:13:40 -0500
Subject: [PATCH] Allow custom_effect to be absent from Flux configuration
 (#21317)

* Allow custom_effect to be absent from Flux configuration

* set custom effect to none during setup
---
 homeassistant/components/light/flux_led.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/homeassistant/components/light/flux_led.py b/homeassistant/components/light/flux_led.py
index 5ecf3f55e10..bfbb98ad57e 100644
--- a/homeassistant/components/light/flux_led.py
+++ b/homeassistant/components/light/flux_led.py
@@ -151,6 +151,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
         device['name'] = '{} {}'.format(device['id'], ipaddr)
         device[ATTR_MODE] = MODE_RGBW
         device[CONF_PROTOCOL] = None
+        device[CONF_CUSTOM_EFFECT] = None
         light = FluxLight(device)
         lights.append(light)
 
-- 
GitLab