Fix Canary doing I/O in the event loop (#35039)

pull/35114/head
Aaron Bach 2020-05-01 22:01:29 -06:00 committed by GitHub
parent 963236916c
commit d9b9a004d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class CanaryCamera(Camera):
async def async_camera_image(self):
"""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)
image = await asyncio.shield(