From b9d4d0e15de420447b6690f75b2e7761f94e384a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 13 Apr 2024 10:24:46 -1000 Subject: [PATCH] Avoid removing websocket_api subscription in mobile_app teardown (#115540) --- homeassistant/components/mobile_app/websocket_api.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/homeassistant/components/mobile_app/websocket_api.py b/homeassistant/components/mobile_app/websocket_api.py index 83c3cb29cea..e862e4c8bd5 100644 --- a/homeassistant/components/mobile_app/websocket_api.py +++ b/homeassistant/components/mobile_app/websocket_api.py @@ -112,9 +112,6 @@ async def handle_push_notification_channel( if registered_channels.get(webhook_id) == channel: registered_channels.pop(webhook_id) - # Remove subscription from connection if still exists - connection.subscriptions.pop(msg["id"], None) - channel = registered_channels[webhook_id] = PushChannel( hass, webhook_id,