mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Improve camera snap performance in Blink (#102652)
This commit is contained in:
parent
7038bd67f7
commit
b37e9bc79a
@ -25,6 +25,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_VIDEO_CLIP = "video"
|
||||
ATTR_IMAGE = "image"
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
@ -105,6 +106,7 @@ class BlinkCamera(CoordinatorEntity[BlinkUpdateCoordinator], Camera):
|
||||
"""Trigger camera to take a snapshot."""
|
||||
with contextlib.suppress(asyncio.TimeoutError):
|
||||
await self._camera.snap_picture()
|
||||
await self._coordinator.api.refresh()
|
||||
self.async_write_ha_state()
|
||||
|
||||
def camera_image(
|
||||
|
Loading…
x
Reference in New Issue
Block a user