From d2976d1cf1af3ddaad00df85e82407c227d89259 Mon Sep 17 00:00:00 2001 From: bittles Date: Mon, 2 Jan 2023 16:49:41 -0500 Subject: [PATCH] log --- custom_components/ecovacs/sucksbumper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index 8e6a385..b326451 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -984,10 +984,13 @@ class EcoVacsXMPP(ClientXMPP): def _ctl_to_dict(self, xml, other_xml): #Including changes from jasonarends @ 28da7c2 below result = xml.attrib.copy() + _LOGGER.debug("result is:") + _LOGGER.debug(result) if other_xml is not None: - other_result = other_xml.attrib.copy() + other_result = other_xml.copy() _LOGGER.debug("other result:") _LOGGER.debug(other_result) + _LOGGER.debug(xml[0]) if 'td' not in result: _LOGGER.debug("td not in result:") _LOGGER.debug(result) @@ -1005,7 +1008,7 @@ class EcoVacsXMPP(ClientXMPP): else: if other_xml is not None: # case where there is child element _LOGGER.debug("other xml is not none, [0] attrib is") - _LOGGER.debug(other_result[0].attrib) + _LOGGER.debug(other_result) if 'clean' in other_result: _LOGGER.debug("clean detected in other_result, result before event handling:") _LOGGER.debug(result)