Timers intialized set when ACTIVE = False
Fixed initial timer problem
This commit is contained in:
parent
61164fa290
commit
8ce98d148e
@ -90,7 +90,10 @@ def make_bridges(_hb_confbridge_bridges):
|
||||
for i, e in enumerate(_system['OFF']):
|
||||
_system['OFF'][i] = hex_str_3(_system['OFF'][i])
|
||||
_system['TIMEOUT'] = _system['TIMEOUT']*60
|
||||
_system['TIMER'] = time() + _system['TIMEOUT']
|
||||
if _system['ACTIVE'] == True:
|
||||
_system['TIMER'] = time() + _system['TIMEOUT']
|
||||
else:
|
||||
_system['TIMER'] = time()
|
||||
|
||||
return bridge_file.BRIDGES
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user