Pass width and height when requesting camera snapshot (#53835)
This commit is contained in:
parent
390023a576
commit
e99576c094
53 changed files with 418 additions and 113 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Camera that loads a picture from an MQTT topic."""
|
||||
from __future__ import annotations
|
||||
|
||||
import functools
|
||||
|
||||
import voluptuous as vol
|
||||
|
@ -98,6 +100,8 @@ class MqttCamera(MqttEntity, Camera):
|
|||
},
|
||||
)
|
||||
|
||||
async def async_camera_image(self):
|
||||
async def async_camera_image(
|
||||
self, width: int | None = None, height: int | None = None
|
||||
) -> bytes | None:
|
||||
"""Return image response."""
|
||||
return self._last_image
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue