From c371f1ffd0ea4fd7d684a0cab21ee8b796ea6182 Mon Sep 17 00:00:00 2001 From: bittles Date: Sat, 31 Dec 2022 11:25:43 -0500 Subject: [PATCH] comment out payload grabbing not working for now return to working state --- custom_components/ecovacs/sucksbumper.py | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index 4334a87..fa51a10 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -948,23 +948,23 @@ class EcoVacsXMPP(ClientXMPP): def _handle_ctl(self, message): the_good_part = message.get_payload()[0][0] as_dict = self._ctl_to_dict(the_good_part) - if message.get_payload()[0][1]: - the_other_part = message.get_payload()[0][1] - other_dict = self._ctl_to_dict(the_other_part) - _LOGGER.debug("handle_ctl called with[0][1] the other part:") - _LOGGER.debug(the_other_part) - _LOGGER.debug("other dict:") - _LOGGER.debug(other_dict) - _LOGGER.debug("end of the_other_part") +# if message.get_payload()[0][1]: +# the_other_part = message.get_payload()[0][1] +# other_dict = self._ctl_to_dict(the_other_part) +# _LOGGER.debug("handle_ctl called with[0][1] the other part:") +# _LOGGER.debug(the_other_part) +# _LOGGER.debug("other dict:") +# _LOGGER.debug(other_dict) +# _LOGGER.debug("end of the_other_part") - if message.get_payload()[1][0]: - the_another_part = message.get_payload()[1][0] - another_dict = self._ctl_to_dict(the_another_part) - _LOGGER.debug("handle_ctl called with[1][0] the another part:") - _LOGGER.debug(the_another_part) - _LOGGER.debug("another dict:") - _LOGGER.debug(another_dict) - _LOGGER.debug("end of the_another_part") +# if message.get_payload()[1][0]: +# the_another_part = message.get_payload()[1][0] +# another_dict = self._ctl_to_dict(the_another_part) +# _LOGGER.debug("handle_ctl called with[1][0] the another part:") +# _LOGGER.debug(the_another_part) +# _LOGGER.debug("another dict:") +# _LOGGER.debug(another_dict) +# _LOGGER.debug("end of the_another_part") if as_dict is not None: for s in self.ctl_subscribers: