1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-01 17:04:05 +00:00

Fix deprecated method isAlive() (#46062)

This commit is contained in:
Marc Mueller
2021-02-05 19:12:23 +01:00
committed by Paulus Schoutsen
parent 285fd3d43c
commit 1e59fa2cb2

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)