Prevent doorbird from creating many executor jobs (#41985)

pull/42004/head
J. Nick Koston 2020-10-17 08:35:24 -05:00 committed by GitHub
parent 121613f5e6
commit d9fbde4f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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