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 2019-02-22 18:13:40 -05:00 committed by Teemu R
parent 2b3c31cdb0
commit b437b87655
1 changed files with 1 additions and 0 deletions

View File

@ -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)