Skip to content

Commit

Permalink
Matter Thermostat: check for nil in temp attribute handler
Browse files Browse the repository at this point in the history
ctowns committed Dec 3, 2024

Verified

This commit was signed with the committer’s verified signature.
truthbk Jaime Fullaondo
1 parent f150282 commit f44090f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/SmartThings/matter-thermostat/src/init.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f44090f

Please sign in to comment.