From d9fbde4f6c278ceada40ae2cadddfabd95957d8e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 17 Oct 2020 08:35:24 -0500 Subject: [PATCH] Prevent doorbird from creating many executor jobs (#41985) --- homeassistant/components/doorbird/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/doorbird/switch.py b/homeassistant/components/doorbird/switch.py index 294780c81dc..358f4172346 100644 --- a/homeassistant/components/doorbird/switch.py +++ b/homeassistant/components/doorbird/switch.py @@ -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