From f44090f78ed5bcc47af03aff1578d31b31a96bd0 Mon Sep 17 00:00:00 2001 From: Cooper Towns Date: Mon, 2 Dec 2024 18:09:58 -0600 Subject: [PATCH] Matter Thermostat: check for nil in temp attribute handler --- drivers/SmartThings/matter-thermostat/src/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/SmartThings/matter-thermostat/src/init.lua b/drivers/SmartThings/matter-thermostat/src/init.lua index 5143f4dfd0..5571326297 100644 --- a/drivers/SmartThings/matter-thermostat/src/init.lua +++ b/drivers/SmartThings/matter-thermostat/src/init.lua @@ -720,6 +720,9 @@ end local function temp_event_handler(attribute) return function(driver, device, ib, response) + if ib.data.value == nil then + return + end local unit = "C" -- Only emit the capability for RPC version >= 5, since unit conversion for