fix if not
This commit is contained in:
parent
c5f86c256d
commit
37d06b2fb3
|
@ -261,7 +261,7 @@ class Controller:
|
|||
|
||||
while run:
|
||||
|
||||
if !self.connected:
|
||||
if not self.connected:
|
||||
if (time.time()>self.last_reconnectTry+30):
|
||||
connectToMQTT()
|
||||
self.last_reconnectTry=time.time()
|
||||
|
|
Loading…
Reference in New Issue