Skip to content

Stop reconnecting the web socket once its session is closed - #252

Merged
natekspencer merged 1 commit into
bretterer:mainfrom
walthowd:fix/closed-session
Nov 15, 2026
Merged

natekspencer merged 1 commit into
bretterer:mainfrom
walthowd:fix/closed-session

Conversation

@walthowd

@walthowd walthowd commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

On Home Assistant shutdown the shared HTTP session closes before the client does, so the web socket monitor tried to reconnect and logged "Session is closed" as an error on every restart. It now stops quietly.

When Home Assistant stops, it closes the shared HTTP session before the
integration closes the client. The web socket monitor then tried to
reconnect with the closed session and logged "Session is closed" as an
error on every restart. Stop the monitor quietly instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FxWHBTrHU6eTPotwMWgtJF

@natekspencer natekspencer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants