Avoid removing websocket_api subscription in mobile_app teardown (#115540)

This commit is contained in:
J. Nick Koston 2024-04-13 10:24:46 -10:00 committed by GitHub
parent 008c42e282
commit b9d4d0e15d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,