diff --git a/homeassistant/components/reolink/host.py b/homeassistant/components/reolink/host.py index e8e96ffe9b9..9ba4809e90d 100644 --- a/homeassistant/components/reolink/host.py +++ b/homeassistant/components/reolink/host.py @@ -327,6 +327,12 @@ class ReolinkHost: async def handle_webhook( self, hass: HomeAssistant, webhook_id: str, request: Request + ): + """Shield the incoming webhook callback from cancellation.""" + await asyncio.shield(self.handle_webhook_shielded(hass, webhook_id, request)) + + async def handle_webhook_shielded( + self, hass: HomeAssistant, webhook_id: str, request: Request ): """Handle incoming webhook from Reolink for inbound messages and calls."""