cant use length in xmpp
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user