consolidate conditionals

This commit is contained in:
happyleaves committed 2015-11-02 18:08:17 -05:00
1 parent 3cd89f8474
commit 566712023d
1 file changed
+4 -5
@@ -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),