send other payload to subscribers but dont think battery is caught at the moment

This commit is contained in:
bittles
2023-01-02 01:16:42 -05:00
parent bdc9ee4c0a
commit ec5f598330
+5 -2
View File
@@ -956,11 +956,14 @@ class EcoVacsXMPP(ClientXMPP):
if as_dict is None: if as_dict is None:
try: try:
other_part = message.get_payload()[0][0][0] other_part = message.get_payload()[0][0][0]
_LOGGER.debug("handle_ctl called with get_payload()[0][0][0], the other part:") # _LOGGER.debug("handle_ctl called with get_payload()[0][0][0], the other part:")
_LOGGER.debug(other_part) #_LOGGER.debug(other_part)
other_dict = self._ctl_to_dict(other_part) other_dict = self._ctl_to_dict(other_part)
#_LOGGER.debug("other dict in query:") #_LOGGER.debug("other dict in query:")
#_LOGGER.debug(other_dict) #_LOGGER.debug(other_dict)
if other_dict is not None:
for s in self.ctl_subscribers:
s(other_dict)
except IndexError: except IndexError:
_LOGGER.warning("No extra payload") _LOGGER.warning("No extra payload")