diff --git a/driver.lua b/driver.lua index b91ac4a..641d8bc 100644 --- a/driver.lua +++ b/driver.lua @@ -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 diff --git a/driver.xml b/driver.xml index 78f3bb5..610a7c0 100644 --- a/driver.xml +++ b/driver.xml @@ -5,8 +5,8 @@ HA Coordinator HA Coordinator 09/10/2023 12:00 - 10/16/2023 12:00 - 104 + 10/18/2023 12:00 + 105 lua_gen true false