water action fixes

This commit is contained in:
Your Name
2019-11-06 09:20:11 +03:00
parent 94778c039e
commit 7a32cb74da
24 changed files with 178 additions and 44 deletions
@@ -23,7 +23,7 @@ class Watchdog(hass.Hass):
def initialize(self):
if not globals.check_args(self, ['entity','update_interval', 'timeout']):
return
self.timer = self.run_every(self.watchdog_check, self.datetime(), self.args['update_interval'])
self.timer = self.run_every(self.watchdog_check, self.datetime()+timedelta(seconds=10), self.args['update_interval'])
def watchdog_check(self, kwargs):
if 'constraint' in self.args and not self.constrain_input_boolean(self.args['constraint']):