Prevent doorbird from creating many executor jobs (#41985)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-10-17 15:35:24 +02:00
1 parent 121613f5e6
commit d9fbde4f6c
1 file changed
+1 -1
+1 -1
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