Skip to content

Improvements for connection logic and error handling#121

Merged
cdheiser merged 2 commits into
thecynic:masterfrom
cdheiser:connection-bug
Apr 3, 2026
Merged

Improvements for connection logic and error handling#121
cdheiser merged 2 commits into
thecynic:masterfrom
cdheiser:connection-bug

Conversation

@cdheiser

@cdheiser cdheiser commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

As noted in #120 some users are having issues with this code connecting properly and locking up home assistant. 3 main changes here:

  1. Better exception handling so it's clear if we're strugging on the login vs. password vs. waiting for the prompt
  2. await with timeouts for the login and password prompts so we don't lock up home assistant
  3. Drain the writer before we wait for a new prompt.

@cdheiser cdheiser merged commit 5117d98 into thecynic:master Apr 3, 2026
7 checks passed
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.

1 participant