From 9d8ee5eb49ce7ff81b1fc5bcc2aebbb3ea87ab53 Mon Sep 17 00:00:00 2001 From: bittles Date: Mon, 2 Jan 2023 00:13:16 -0500 Subject: [PATCH] grab different part of payload --- custom_components/ecovacs/sucksbumper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index 18a99ef..197309b 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -972,8 +972,8 @@ class EcoVacsXMPP(ClientXMPP): if as_dict is None: try: - other_part = message.get_payload()[1][0] - _LOGGER.debug("handle_ctl called with get_payload()[1][0], the other part:") + other_part = message.get_payload()[0][1] + _LOGGER.debug("handle_ctl called with get_payload()[0][1], the other part:") _LOGGER.debug(other_part) except TypeError: _LOGGER.warning("No extra payload")