mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +01:00
added rgbw to color modes for color wheel
This commit is contained in:
@@ -456,7 +456,7 @@ class NsPanelLovelanceUI:
|
||||
else:
|
||||
color_temp = "disable"
|
||||
|
||||
if "xy" in entity.attributes.supported_color_modes:
|
||||
if "xy" in entity.attributes.supported_color_modes or "rgbw" in entity.attributes.supported_color_modes:
|
||||
color = "enable"
|
||||
else:
|
||||
color = "disable"
|
||||
@@ -484,4 +484,4 @@ class NsPanelLovelanceUI:
|
||||
sat = r
|
||||
hsv = (math.degrees(math.atan2(y, x))%360/360, sat, 1)
|
||||
rgb = self.hsv2rgb(hsv[0],hsv[1],hsv[2])
|
||||
return rgb
|
||||
return rgb
|
||||
|
||||
Reference in New Issue
Block a user