Skip to content

Commit

Permalink
Fixes I/O error with Canary camera livestream
Browse files Browse the repository at this point in the history
  • Loading branch information
katiebot committed Sep 22, 2021
1 parent a653da1 commit 43ed73c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homeassistant/components/canary/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ async def handle_async_mjpeg_stream(
return None

stream = CameraMjpeg(self._ffmpeg.binary)
await self.hass.async_add_executor_job(self.renew_live_stream_session)
live_stream_url = await self.hass.async_add_executor_job(
getattr, self._live_stream_session, "live_stream_url"
)
await stream.open_camera(
self._live_stream_session.live_stream_url, extra_cmd=self._ffmpeg_arguments
live_stream_url, extra_cmd=self._ffmpeg_arguments
)

try:
Expand Down

0 comments on commit 43ed73c

Please sign in to comment.