Skip to content

Commit

Permalink
Merge pull request wpietri#25 from torbjornaxelsson/error-event-bug-fix
Browse files Browse the repository at this point in the history
Removed error handler in EcoVacsXMPP
  • Loading branch information
wpietri authored Dec 22, 2017
2 parents d300df9 + e7ad30e commit bda504d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sucks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def __init__(self, user, domain, resource, secret, vacuum, continent):
self.battery_status = None

self.xmpp = EcoVacsXMPP(user, domain, resource, secret, continent)
self.xmpp.register_callback("error", self._handle_error)
self.xmpp.subscribe_to_ctls(self._handle_ctl)

def connect_and_wait_until_ready(self):
Expand Down Expand Up @@ -171,11 +170,6 @@ def _handle_charge_state(self, event):
logging.warning("Unknown charging status '" + report + "'")
logging.debug("*** charge_status = " + self.charge_status)

def _handle_error(self, iq):
error = iq.find('{com:ctl}query/{com:ctl}ctl').get('error')
error_no = iq.find('{com:ctl}query/{com:ctl}ctl').get('errno')
logging.debug("*** error = " + error_no + " " + error)

def _vacuum_address(self):
return self.vacuum['did'] + '@' + self.vacuum['class'] + '.ecorobot.net/atom'

Expand Down

0 comments on commit bda504d

Please sign in to comment.