From ec5f5983303d19019ae5910f47710effb6248bdb Mon Sep 17 00:00:00 2001 From: bittles Date: Mon, 2 Jan 2023 01:16:42 -0500 Subject: [PATCH] send other payload to subscribers but dont think battery is caught at the moment --- custom_components/ecovacs/sucksbumper.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/custom_components/ecovacs/sucksbumper.py b/custom_components/ecovacs/sucksbumper.py index 74b87c3..ac11f76 100644 --- a/custom_components/ecovacs/sucksbumper.py +++ b/custom_components/ecovacs/sucksbumper.py @@ -956,11 +956,14 @@ class EcoVacsXMPP(ClientXMPP): if as_dict is None: try: other_part = message.get_payload()[0][0][0] - _LOGGER.debug("handle_ctl called with get_payload()[0][0][0], the other part:") - _LOGGER.debug(other_part) + # _LOGGER.debug("handle_ctl called with get_payload()[0][0][0], the other part:") + #_LOGGER.debug(other_part) other_dict = self._ctl_to_dict(other_part) #_LOGGER.debug("other dict in query:") #_LOGGER.debug(other_dict) + if other_dict is not None: + for s in self.ctl_subscribers: + s(other_dict) except IndexError: _LOGGER.warning("No extra payload")