Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions homeassistant/components/light/flux_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ def effect_list(self):

def turn_on(self, **kwargs):
"""Turn the specified or all lights on."""
if not self.is_on:
self._bulb.turnOn()

hs_color = kwargs.get(ATTR_HS_COLOR)

if hs_color:
Expand Down Expand Up @@ -269,9 +272,6 @@ def turn_on(self, **kwargs):
else:
self._bulb.setRgb(*tuple(rgb), brightness=brightness)

if not self.is_on:
self._bulb.turnOn()

def turn_off(self, **kwargs):
"""Turn the specified or all lights off."""
self._bulb.turnOff()
Expand Down