From 52c10f7d0d7d44b791f209cb2b7d7f12c0afa221 Mon Sep 17 00:00:00 2001 From: sususweet Date: Fri, 14 Nov 2025 20:52:03 +0800 Subject: [PATCH] fix: multi-point login and control for meiju app. --- .../midea_auto_cloud/core/device.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/custom_components/midea_auto_cloud/core/device.py b/custom_components/midea_auto_cloud/core/device.py index 063501c..c669440 100644 --- a/custom_components/midea_auto_cloud/core/device.py +++ b/custom_components/midea_auto_cloud/core/device.py @@ -283,20 +283,20 @@ class MiedaDevice(threading.Thread): query=query ) else: + if self._lua_runtime is not None: + if query_cmd := self._lua_runtime.build_query(query): + try: + await self._build_send(query_cmd) + return + except Exception as e: + traceback.print_exc() + status = await cloud.get_device_status( appliance_code=self._device_id, query=query ) self._parse_cloud_message(status) - # if self._lua_runtime is not None: - # if query_cmd := self._lua_runtime.build_query(query): - # try: - # await self._build_send(query_cmd) - # return - # except Exception as e: - # traceback.print_exc() - def _parse_cloud_message(self, status): # MideaLogger.debug(f"Received: {decrypted}")