diff --git a/tests/components/stream/conftest.py b/tests/components/stream/conftest.py index 75ac9377b7c..1b017667ee6 100644 --- a/tests/components/stream/conftest.py +++ b/tests/components/stream/conftest.py @@ -40,7 +40,8 @@ class WorkerSync: # Block the worker thread until the test has a chance to verify # the segments under test. logging.debug("blocking worker") - self._event.wait() + if self._event: + self._event.wait() # Forward to actual implementation self._original(stream)