Take Abode camera snapshot before fetching latest image (#67150)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <git@frenck.dev>
pull/67218/head
kevdliu 2022-02-25 03:44:17 -05:00 committed by GitHub
parent 406fbca4bc
commit ad6c3d37be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ class AbodeCamera(AbodeDevice, Camera):
self, width: int | None = None, height: int | None = None self, width: int | None = None, height: int | None = None
) -> bytes | None: ) -> bytes | None:
"""Get a camera image.""" """Get a camera image."""
if not self.capture():
return None
self.refresh_image() self.refresh_image()
if self._response: if self._response: