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
This commit is contained in:
David Conley authored and Teemu R committed 2019-02-23 00:13:40 +01:00
1 parent 2b3c31cdb0
commit b437b87655
1 file changed
+1
@@ -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)