Skip to content

Commit

Permalink
Merge pull request #1792 from SmartThingsCommunity/bugfix/matter-ther…
Browse files Browse the repository at this point in the history
…mostat-nil-temp

Matter Thermostat: check for nil in temp attribute handler
  • Loading branch information
ctowns authored Dec 6, 2024
2 parents abe0ee1 + f44090f commit 3a3295a
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
Expand Up @@ -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
Expand Down

0 comments on commit 3a3295a

Please sign in to comment.