cant use length in xmpp

This commit is contained in:
bittles
2023-01-02 17:05:27 -05:00
parent 3caa4c1127
commit d74ec5dc6a
+1 -1
View File
@@ -1006,7 +1006,7 @@ class EcoVacsXMPP(ClientXMPP):
_LOGGER.debug(result) _LOGGER.debug(result)
else: else:
len(xml) > 0: xml[0] is not None:
# if other_xml is not None: # case where there is child element # if other_xml is not None: # case where there is child element
_LOGGER.debug("child xml detected, [0] tag is") _LOGGER.debug("child xml detected, [0] tag is")
_LOGGER.debug(xml[0].tag) _LOGGER.debug(xml[0].tag)