From 1b7b4b7d45c74cee089d6f50030bc5f5fd2cc8e4 Mon Sep 17 00:00:00 2001 From: Alex X Date: Sun, 1 Sep 2024 20:58:29 +0300 Subject: [PATCH] Fix cloud messages without sequence #1476 --- custom_components/sonoff/core/ewelink/cloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/sonoff/core/ewelink/cloud.py b/custom_components/sonoff/core/ewelink/cloud.py index 76c9f24e..a04a04ed 100644 --- a/custom_components/sonoff/core/ewelink/cloud.py +++ b/custom_components/sonoff/core/ewelink/cloud.py @@ -595,7 +595,8 @@ async def connect(self) -> bool: async def _process_ws_msg(self, data: dict): if "action" not in data: # response on our command - self._set_response(data["sequence"], data["error"]) + if "sequence" in data and "error" in data: + self._set_response(data["sequence"], data["error"]) # with params response on query, without - on update if "params" in data: