Fix deprecated method isAlive() (#46062)

This commit is contained in:
Marc Mueller 2021-02-05 19:12:23 +01:00 committed by GitHub
parent 55f81a8a04
commit 55f9d98523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ class ZwaveDimmer(ZWaveDeviceEntity, LightEntity):
self._refreshing = True
self.values.primary.refresh()
if self._timer is not None and self._timer.isAlive():
if self._timer is not None and self._timer.is_alive():
self._timer.cancel()
self._timer = Timer(self._delay, _refresh_value)