consolidate conditionals

pull/577/head
happyleaves 2015-11-02 17:24:24 -05:00
parent 3cd89f8474
commit 566712023d
1 changed files with 4 additions and 5 deletions

View File

@ -162,11 +162,10 @@ class RGBWLimitlessLED(LimitlessLED):
effect = kwargs.get(ATTR_EFFECT)
if effect:
if effect == EFFECT_COLORLOOP:
self.pool.execute(self.controller_id, "disco", self.group)
if effect == EFFECT_WHITE:
self.pool.execute(self.controller_id, "white", self.group)
if effect == EFFECT_COLORLOOP:
self.pool.execute(self.controller_id, "disco", self.group)
if effect == EFFECT_WHITE:
self.pool.execute(self.controller_id, "white", self.group)
else:
self.pool.execute(self.controller_id, "set_color",
self._xy_to_led_color(self._xy_color),