Pass width and height when requesting camera snapshot (#53835)

This commit is contained in:
J. Nick Koston
2021-08-10 19:33:06 -05:00
committed by GitHub
parent 390023a576
commit e99576c094
53 changed files with 418 additions and 113 deletions

View File

@@ -1,4 +1,6 @@
"""Support for Abode Security System cameras."""
from __future__ import annotations
from datetime import timedelta
import abodepy.helpers.constants as CONST
@@ -73,7 +75,9 @@ class AbodeCamera(AbodeDevice, Camera):
else:
self._response = None
def camera_image(self):
def camera_image(
self, width: int | None = None, height: int | None = None
) -> bytes | None:
"""Get a camera image."""
self.refresh_image()