Skip to content

Commit

Permalink
Some model return "id" instead of "command_id"
Browse files Browse the repository at this point in the history
  • Loading branch information
harveypham committed Aug 9, 2024
1 parent f38506b commit 0f52934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blinkpy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ async def request_camera_liveview(blink, network, camera_id):
f"/networks/{network}/cameras/{camera_id}/liveview"
)
response = await http_post(blink, url)
await wait_for_command(blink, {"id": response["command_id"], "network_id": network})
command_id = response.get("id") or response.get("command_id")
await wait_for_command(blink, {"id": command_id, "network_id": network})
return response


Expand Down

0 comments on commit 0f52934

Please sign in to comment.