From 4776917eb6a629e4de16cd1d7d3a01f91e36c1e3 Mon Sep 17 00:00:00 2001 From: mkmer Date: Sat, 13 Jan 2024 15:57:54 +0000 Subject: [PATCH] Update image after snap --- blinkpy/camera.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blinkpy/camera.py b/blinkpy/camera.py index 6470efc7..21208bc1 100644 --- a/blinkpy/camera.py +++ b/blinkpy/camera.py @@ -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."""