Skip to content

Drop MissingCredentialsError.parse - #7

Open
MarkParker5 wants to merge 1 commit into
developfrom
fix/drop-credentials-parse
Open

MarkParker5 wants to merge 1 commit into
developfrom
fix/drop-credentials-parse

Conversation

@MarkParker5

@MarkParker5 MarkParker5 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #6, pushed to its branch right after the merge, so it missed it.

MissingCredentialsError.parse() only existed for reading the error back from a discovery's last_error. Pairing now reports missing credentials as a 422 from the Hub's pair endpoints ({type: "missing_credentials", msg, device_id, credentials_type}, Hub #149), and ESPHome no longer writes last_error for it, so nothing calls parse().

  • Remove MissingCredentialsError.parse() and its tests.
  • Reword the docstring to the 422 contract.

Should go in before the next SDK release, so parse() never ships.

Tests: pytest 110 passed; ruff and ty clean.

This branch has not been deployed

No deployments
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