From 1ed7eeaea2a6a4e103561f2327e18b162ec36cf2 Mon Sep 17 00:00:00 2001 From: bittles Date: Mon, 2 Jan 2023 00:00:56 -0500 Subject: [PATCH] add exception to try --- custom_components/ecovacs/sucksbumper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index b46ee73..c5d8576 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -975,6 +975,8 @@ class EcoVacsXMPP(ClientXMPP): other_part = message.get_payload()[1][0] _LOGGER.debug("handle_ctl called with get_payload()[1][0], the other part:") _LOGGER.debug(other_part) + except TypeError: + _LOGGER.warning("No extra payload") def _ctl_to_dict(self, xml): result = xml.attrib.copy()