mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00: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:
parent
33f0bf4c4a
commit
6f8e3d2544
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user