Skip to content

Commit ab13b53

Browse files
authored
fix: cli json serializing (#66)
1 parent 21c47ab commit ab13b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def command(ctx, cmd, device_id, params):
136136
raise RoborockException(f"Could not find model for device {device.name}")
137137
device_info = DeviceData(device=device, model=model)
138138
mqtt_client = RoborockMqttClient(login_data.user_data, device_info)
139-
await mqtt_client.send_command(cmd, params)
139+
await mqtt_client.send_command(cmd, json.loads(params) if params is not None else None)
140140
mqtt_client.__del__()
141141

142142

0 commit comments

Comments
 (0)