diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index 98ab979..c061898 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -1006,7 +1006,7 @@ class EcoVacsXMPP(ClientXMPP): _LOGGER.debug(result) else: - xml[0] is not None: + if xml[0] is not None: # if other_xml is not None: # case where there is child element _LOGGER.debug("child xml detected, [0] tag is") _LOGGER.debug(xml[0].tag)