From 6f8e3d254431428cff690c230688d9811681eb3c Mon Sep 17 00:00:00 2001 From: Colin Robbins Date: Mon, 19 Oct 2020 04:42:50 +0100 Subject: [PATCH] Update stream integration for Python 3.9 which removed isAlive from threading in favor of is_alive (#42051) Python 3.9 compact --- homeassistant/components/stream/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/stream/__init__.py b/homeassistant/components/stream/__init__.py index d754f0beb01..2b242389ef0 100644 --- a/homeassistant/components/stream/__init__.py +++ b/homeassistant/components/stream/__init__.py @@ -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.