Skip to content

Commit

Permalink
fix(cloud): meiju cloud download_lua appliance_type error (#281)
Browse files Browse the repository at this point in the history
meiju cloud download_lua appliance_type error, just copy the same arg
from msmart cloud.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
wuwentao authored Aug 21, 2024
1 parent 03425d7 commit 54f1bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion midealocal/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 54f1bf4

Please sign in to comment.