mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +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_VIDEO_CLIP = "video"
|
||||||
ATTR_IMAGE = "image"
|
ATTR_IMAGE = "image"
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
@ -105,6 +106,7 @@ class BlinkCamera(CoordinatorEntity[BlinkUpdateCoordinator], Camera):
|
|||||||
"""Trigger camera to take a snapshot."""
|
"""Trigger camera to take a snapshot."""
|
||||||
with contextlib.suppress(asyncio.TimeoutError):
|
with contextlib.suppress(asyncio.TimeoutError):
|
||||||
await self._camera.snap_picture()
|
await self._camera.snap_picture()
|
||||||
|
await self._coordinator.api.refresh()
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
def camera_image(
|
def camera_image(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user