diff --git a/tests/components/stream/test_hls.py b/tests/components/stream/test_hls.py index 23ba2e4ab34..0ec01fd9231 100644 --- a/tests/components/stream/test_hls.py +++ b/tests/components/stream/test_hls.py @@ -327,6 +327,8 @@ async def test_stream_retries( await stream.start() await open_future1 await open_future2 + await hass.async_add_executor_job(stream._thread.join) + stream._thread = None assert av_open.call_count == 2 await hass.async_block_till_done()