python-ring-doorbell
python-ring-doorbell copied to clipboard
Function get_snapshot() in doorbot needs attention
Line 441: if response["timestamps"][0]["timestamp"] / 1000 > request_time: here the division by 1000 seems to be incorrect. I guess Ring changed the response format. Propose to change to if response["timestamps"][0]["timestamp"] > request_time:
Line 443: SNAPSHOT_ENDPOINT.format(self._attrs.get("id")), raw=True here the raw parameter is invalid in the call to self._ring.query(). Propose to change to SNAPSHOT_ENDPOINT.format(self._attrs.get("id"))
Kind Regards, Martin
Good catch! Thanks for sharing.
I have made the above changes and still can't get any snapshots.
The fix works for me!
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs. Please make sure to update to the latest ring_doorbell version and check if that solves the issue. Thank you for your contributions.