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: 4 additions & 2 deletions homeassistant/components/light/lifx.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ def brightness(self):
@property
def color_temp(self):
"""Return the color temperature."""
kelvin = self.device.color[3]
_, sat, _, kelvin = self.device.color
if sat:
return None
return color_util.color_temperature_kelvin_to_mired(kelvin)

@property
Expand Down Expand Up @@ -601,7 +603,7 @@ def hs_color(self):
hue, sat, _, _ = self.device.color
hue = hue / 65535 * 360
sat = sat / 65535 * 100
return (hue, sat)
return (hue, sat) if sat else None


class LIFXStrip(LIFXColor):
Expand Down