Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update image after snap #861

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion blinkpy/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,14 @@

async def snap_picture(self):
"""Take a picture with camera to create a new thumbnail."""
return await api.request_new_image(
ret_val = await api.request_new_image(
self.sync.blink, self.network_id, self.camera_id
)
response = await self.get_media()
if response and response.status == 200:
self._cached_image = await response.read()

Check warning on line 214 in blinkpy/camera.py

View check run for this annotation

Codecov / codecov/patch

blinkpy/camera.py#L214

Added line #L214 was not covered by tests

return ret_val

async def set_motion_detect(self, enable):
"""Set motion detection."""
Expand Down