From de992c7d42acd7514ffcccf161c609f64043d364 Mon Sep 17 00:00:00 2001 From: Andy Raines Date: Thu, 25 Feb 2021 20:50:29 +0000 Subject: [PATCH] Fix deprecated method, fixes #11 --- custom_components/thermoplus_ble/ble.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/thermoplus_ble/ble.py b/custom_components/thermoplus_ble/ble.py index 79fb91b..ff22b2c 100644 --- a/custom_components/thermoplus_ble/ble.py +++ b/custom_components/thermoplus_ble/ble.py @@ -50,9 +50,9 @@ def stop(self): _LOGGER.debug("Stopping scanner thread") if self.thread is None: return True - if self.thread.isAlive(): + if self.thread.is_alive(): self.thread.join() - if self.thread.isAlive(): + if self.thread.is_alive(): _LOGGER.error("Waiting for scanner thread took too long") return False else: