From 7c093d688b92c04e2e74a8d4b2ec4dab130542a5 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sat, 12 Mar 2022 23:32:00 +0100 Subject: [PATCH] added rgbw to color modes for color wheel --- apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py index 5621087f..b97f2df9 100644 --- a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py +++ b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py @@ -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 \ No newline at end of file + return rgb