Skip to content

Commit

Permalink
Merge pull request #861 from mkmer/Update-after-snap
Browse files Browse the repository at this point in the history
Update image after snap
  • Loading branch information
fronzbot authored Jan 13, 2024
2 parents c899cf4 + 4776917 commit 5146b36
Showing 1 changed file with 6 additions and 1 deletion.
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 get_video_clip(self, url=None):

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()

return ret_val

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

0 comments on commit 5146b36

Please sign in to comment.