Prevent doorbird from creating many executor jobs (#41985)
parent
121613f5e6
commit
d9fbde4f6c
|
@ -82,7 +82,7 @@ class DoorBirdSwitch(DoorBirdEntity, SwitchEntity):
|
|||
"""Turn off the relays is not needed. They are time-based."""
|
||||
raise NotImplementedError("DoorBird relays cannot be manually turned off.")
|
||||
|
||||
def update(self):
|
||||
async def async_update(self):
|
||||
"""Wait for the correct amount of assumed time to pass."""
|
||||
if self._state and self._assume_off <= dt_util.utcnow():
|
||||
self._state = False
|
||||
|
|
Loading…
Reference in New Issue