mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Update stream integration for Python 3.9 which removed isAlive from threading in favor of is_alive (#42051)
Python 3.9 compact
This commit is contained in:
@@ -171,7 +171,7 @@ class Stream:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from .worker import stream_worker
|
||||
|
||||
if self._thread is None or not self._thread.isAlive():
|
||||
if self._thread is None or not self._thread.is_alive():
|
||||
if self._thread is not None:
|
||||
# The thread must have crashed/exited. Join to clean up the
|
||||
# previous thread.
|
||||
|
Reference in New Issue
Block a user