From e60313628f8fd06971e34213b5ca7128ec744927 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 22 Jul 2023 17:06:32 -0500 Subject: [PATCH] Add a cancel message to the aiohttp compatiblity layer (#97058) --- homeassistant/helpers/aiohttp_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/aiohttp_compat.py b/homeassistant/helpers/aiohttp_compat.py index 1780cd053f5..78aad44fa66 100644 --- a/homeassistant/helpers/aiohttp_compat.py +++ b/homeassistant/helpers/aiohttp_compat.py @@ -12,7 +12,7 @@ class CancelOnDisconnectRequestHandler(web_protocol.RequestHandler): task_handler = self._task_handler super().connection_lost(exc) if task_handler is not None: - task_handler.cancel() + task_handler.cancel("aiohttp connection lost") def restore_original_aiohttp_cancel_behavior() -> None: