Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix json decode quirk for xiaomi e10 (#1922)
Version: Firmware version: `2.2.4_0050` Hardware version: `esp32` some commands (e.g. `genericmiot call map:rename-map '[0,"string"]'`) generate json-like string like this: ```json {"id":2,"result":,"exe_time":0} ``` and this produce the error: ```log ERROR:miio.protocol:Unable to parse json 'b'{"id":2,"result":,"exe_time":0}'': Expecting value: line 1 column 18 (char 17) ERROR:miio.click_common:Exception: Unable to parse message payload ``` I fix that by removing the nonsense `result":,`. --------- Co-authored-by: Teemu Rytilahti <[email protected]>
- Loading branch information