trying to pull right part of payload

This commit is contained in:
bittles
2023-01-01 23:49:33 -05:00
parent 906007a290
commit 5f0a21fd93
+4 -3
View File
@@ -971,9 +971,10 @@ class EcoVacsXMPP(ClientXMPP):
s(as_dict)
if as_dict is None:
other_part = message.get_payload()
_LOGGER.debug("handle_ctl called with get_payload(), the other part:")
_LOGGER.debug(other_part)
try:
other_part = message.get_payload()[1][0]
_LOGGER.debug("handle_ctl called with get_payload()[1][0], the other part:")
_LOGGER.debug(other_part)
def _ctl_to_dict(self, xml):
result = xml.attrib.copy()