Add spotclean to cli

Add spotclean to cli
This commit is contained in:
Brian Martin
2019-01-14 13:13:02 -05:00
parent 304c576960
commit 62185d135f
3 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -360,11 +360,11 @@ class VacBot():
def connect_and_wait_until_ready(self):
if self.vacuum['iot']:
self.iot.connect_and_wait_until_ready()
self.iot.schedule('Ping', 30, lambda: self.send_ping(), repeat=True)
if not self.vacuum['iot']:
#self.iot.connect_and_wait_until_ready()
#self.iot.schedule('Ping', 30, lambda: self.send_ping(), repeat=True)
else:
#else:
self.xmpp.connect_and_wait_until_ready()
self.xmpp.schedule('Ping', 30, lambda: self.send_ping(), repeat=True)