From 4236f6e5d499e38e21f2d54a9da6ffdb6061b538 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Tue, 16 Feb 2021 20:46:44 -0800 Subject: [PATCH] Fix stream keepalive on startup (#46640) This was accidentally dropped in a previous PR that refactored the interaction between stream and camera. This is difficult to test from the existing preload stream tests, so leaving untested for now. --- homeassistant/components/camera/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index d0bee4e249f..4c5d89030b4 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -258,6 +258,7 @@ async def async_setup(hass, config): stream = await camera.create_stream() if not stream: continue + stream.keepalive = True stream.hls_output() stream.start()