Skip to content

Commit

Permalink
Fix connection watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
bphillips09 committed Oct 18, 2023
1 parent 010133d commit 2c9ee68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions driver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,12 @@ function EC.WS_CONNECT()
return
end

CancelTimer('WatchdogTimer')
SetTimer('WatchdogTimer', ONE_SECOND * 30, Connect)
Watchdog()
end

function Watchdog()
CancelTimer('WatchdogTimer')
SetTimer('WatchdogTimer', ONE_SECOND * 30, Watchdog)
Connect()
end

Expand Down
4 changes: 2 additions & 2 deletions driver.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<name>HA Coordinator</name>
<model>HA Coordinator</model>
<created>09/10/2023 12:00</created>
<modified>10/16/2023 12:00</modified>
<version>104</version>
<modified>10/18/2023 12:00</modified>
<version>105</version>
<control>lua_gen</control>
<auto_update>true</auto_update>
<force_auto_update>false</force_auto_update>
Expand Down

0 comments on commit 2c9ee68

Please sign in to comment.