Skip to content

Commit

Permalink
Fix deprecated method, fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
araines committed Feb 25, 2021
1 parent ea47fca commit de992c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/thermoplus_ble/ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit de992c7

Please sign in to comment.