mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix deprecated method isAlive() (#46062)
This commit is contained in:
parent
55f81a8a04
commit
55f9d98523
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user