Skip to content

Commit

Permalink
Update L_Ecobee1.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
rafale77 authored Jan 15, 2019
1 parent 2e1ba54 commit 599a413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions L_Ecobee1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,11 @@

local function updateThermostats(session, thermostatsUpdateOptions)
local success = requpdateThermostats(session, thermostatsUpdateOptions)
local retryct = 0
function retry()
local success = requpdateThermostats(session, thermostatsUpdateOptions)
retryct = retryct+1
if not success and retryct <= 5 then luup.call_delay("retry",2) end
end
if not success then luup.call_delay("retry",2) end
saveSession(session)
Expand Down

0 comments on commit 599a413

Please sign in to comment.