mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Prevent doorbird from creating many executor jobs (#41985)
This commit is contained in:
parent
121613f5e6
commit
d9fbde4f6c
@ -82,7 +82,7 @@ class DoorBirdSwitch(DoorBirdEntity, SwitchEntity):
|
|||||||
"""Turn off the relays is not needed. They are time-based."""
|
"""Turn off the relays is not needed. They are time-based."""
|
||||||
raise NotImplementedError("DoorBird relays cannot be manually turned off.")
|
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."""
|
"""Wait for the correct amount of assumed time to pass."""
|
||||||
if self._state and self._assume_off <= dt_util.utcnow():
|
if self._state and self._assume_off <= dt_util.utcnow():
|
||||||
self._state = False
|
self._state = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user