mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix Canary doing I/O in the event loop (#35039)
This commit is contained in:
parent
963236916c
commit
d9b9a004d2
@ -81,7 +81,7 @@ class CanaryCamera(Camera):
|
|||||||
|
|
||||||
async def async_camera_image(self):
|
async def async_camera_image(self):
|
||||||
"""Return a still image response from the camera."""
|
"""Return a still image response from the camera."""
|
||||||
self.renew_live_stream_session()
|
await self.hass.async_add_executor_job(self.renew_live_stream_session)
|
||||||
|
|
||||||
ffmpeg = ImageFrame(self._ffmpeg.binary, loop=self.hass.loop)
|
ffmpeg = ImageFrame(self._ffmpeg.binary, loop=self.hass.loop)
|
||||||
image = await asyncio.shield(
|
image = await asyncio.shield(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user