From 566712023dac96ebb88d95b8a123822a3f82a09d Mon Sep 17 00:00:00 2001 From: happyleaves Date: Mon, 2 Nov 2015 17:24:24 -0500 Subject: [PATCH] consolidate conditionals --- homeassistant/components/light/limitlessled.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/light/limitlessled.py b/homeassistant/components/light/limitlessled.py index be9a59ede89..fef6cd0b8b1 100644 --- a/homeassistant/components/light/limitlessled.py +++ b/homeassistant/components/light/limitlessled.py @@ -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),