testing out sleekxmpp stuff to get payload

This commit is contained in:
bittles
2023-01-02 00:22:32 -05:00
parent 9d8ee5eb49
commit fde7ee9d5f
+2 -19
View File
@@ -948,23 +948,6 @@ 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()[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:
@@ -972,10 +955,10 @@ class EcoVacsXMPP(ClientXMPP):
if as_dict is None:
try:
other_part = message.get_payload()[0][1]
other_part = message.get_payload()
_LOGGER.debug("handle_ctl called with get_payload()[0][1], the other part:")
_LOGGER.debug(other_part)
except TypeError:
except IndexError:
_LOGGER.warning("No extra payload")
def _ctl_to_dict(self, xml):