fix(hassio): recover from CPU budget kills that froze the panel on (#205)

"Connecting"
This commit is contained in:
Artur
2026-08-01 21:31:36 -04:00
committed by GitHub
parent f8767575e4
commit 7440208c19
9 changed files with 431 additions and 193 deletions
+7 -1
View File
@@ -140,7 +140,13 @@ function onClick()
"Content-Type: application/json",
},
body = encoded,
}, function(response)end)
}, function(response)
local httpStatus = response and response.status or 0
if httpStatus >= 200 and httpStatus < 300 then return end
noctalia.log("Home Assistant rejected toggle for " .. eid .. ": status " .. tostring(httpStatus))
clearPending(eid)
render()
end)
render()
end