From 658f90ff934f7416079e433fe20a4754ecbc8581 Mon Sep 17 00:00:00 2001 From: Doug Stephen Date: Mon, 11 Sep 2023 14:35:00 -0500 Subject: [PATCH] fix: Address regression from NaN hue/sat fixes A while back we made some changes to avoid emitting Hue/Sat events in case of a NaN for the values, and in that refactor we accidentally stopped emitting saturation events. This fixes that. --- drivers/SmartThings/philips-hue/src/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/SmartThings/philips-hue/src/init.lua b/drivers/SmartThings/philips-hue/src/init.lua index 9e3af1d99a..315f82d826 100644 --- a/drivers/SmartThings/philips-hue/src/init.lua +++ b/drivers/SmartThings/philips-hue/src/init.lua @@ -138,7 +138,7 @@ local function emit_light_status_events(light_device, light) ) ) else - light_device:emit_event(capabilities.colorControl.hue(adjusted_sat)) + light_device:emit_event(capabilities.colorControl.saturation(adjusted_sat)) end end end