will see if i can get full payload to send to dict but if not will break down to seperate

This commit is contained in:
bittles
2023-01-02 15:59:06 -05:00
parent 27b9bc4afe
commit aac3d0f31e
+2 -3
View File
@@ -950,7 +950,7 @@ class EcoVacsXMPP(ClientXMPP):
_LOGGER.debug(message)
# the_good_part = str(message.payload.decode("utf-8"))
# the_good_part = message.get_payload()[0][0]
the_good_part = str(message.get_payload())
the_good_part = message.get_payload()
_LOGGER.debug("the_good_part in handle_ctl is :")
_LOGGER.debug(message)
# other_part = "{'ret': 'ok'}"
@@ -981,9 +981,8 @@ class EcoVacsXMPP(ClientXMPP):
# except IndexError:
# _LOGGER.debug("No extra payload")
def _ctl_to_dict(self, xmlstring):
def _ctl_to_dict(self, xml):
#Including changes from jasonarends @ 28da7c2 below
xml = ET.fromstring(xmlstring)
result = xml.attrib.copy()
if 'td' not in result:
# This happens for commands with no response data, such as PlaySound