From 54f1bf4a812c44590d9e01e9cd91c4c0f1768948 Mon Sep 17 00:00:00 2001 From: Hello World Date: Wed, 21 Aug 2024 20:34:34 +0800 Subject: [PATCH] fix(cloud): meiju cloud download_lua appliance_type error (#281) meiju cloud download_lua appliance_type error, just copy the same arg from msmart cloud. ## Summary by CodeRabbit - **Improvements** - Simplified the construction of the `applianceType` value for downloads, enhancing clarity and potential compatibility with downstream processes. - **Impact** - The change may affect how the `applianceType` is interpreted, ensuring better consistency in data handling. --- midealocal/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midealocal/cloud.py b/midealocal/cloud.py index 9f29b628..9771f12d 100644 --- a/midealocal/cloud.py +++ b/midealocal/cloud.py @@ -515,7 +515,7 @@ async def download_lua( """Download lua integration.""" data = { "applianceSn": sn, - "applianceType": f".{f'x{device_type:02x}'}", + "applianceType": hex(device_type), "applianceMFCode": manufacturer_code, "version": "0", "iotAppId": self._app_id,