From ae7ebc25c7e9b45924b755bdbd0b94c0ba79f4e5 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 21 Feb 2024 09:47:36 -0600 Subject: [PATCH] Migrate shelly to use Debouncer.async_schedule_call (#111087) --- homeassistant/components/shelly/coordinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/shelly/coordinator.py b/homeassistant/components/shelly/coordinator.py index 86fd98b527e..4cb53fd5bea 100644 --- a/homeassistant/components/shelly/coordinator.py +++ b/homeassistant/components/shelly/coordinator.py @@ -279,7 +279,7 @@ class ShellyBlockCoordinator(ShellyCoordinatorBase[BlockDevice]): self.name, ENTRY_RELOAD_COOLDOWN, ) - self.hass.async_create_task(self._debounced_reload.async_call()) + self._debounced_reload.async_schedule_call() self._last_cfg_changed = cfg_changed async def _async_update_data(self) -> None: @@ -496,7 +496,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]): self.name, ENTRY_RELOAD_COOLDOWN, ) - self.hass.async_create_task(self._debounced_reload.async_call()) + self._debounced_reload.async_schedule_call() elif event_type in RPC_INPUTS_EVENTS_TYPES: for event_callback in self._input_event_listeners: event_callback(event)