mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Pass width and height when requesting camera snapshot (#53835)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user