Skip to content

Add EcobeeAuthMfaRequiredError.challenge property (0.4.2)#89

Open
pike00 wants to merge 1 commit into
nkgilley:masterfrom
pike00:feat/mfa-challenge-property
Open

Add EcobeeAuthMfaRequiredError.challenge property (0.4.2)#89
pike00 wants to merge 1 commit into
nkgilley:masterfrom
pike00:feat/mfa-challenge-property

Conversation

@pike00

@pike00 pike00 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a named .challenge property on EcobeeAuthMfaRequiredError that returns the MfaChallenge payload (still also available as args[0] for compatibility)
  • Update MFA unit tests to assert via .challenge
  • Bump version to 0.4.2

Home Assistant currently indexes err.args[0] after catching this exception. Preferring .challenge makes that contract explicit.

Test plan

  • pytest tests/test_auth.py (18 passed)
  • After merge, please publish 0.4.2 to PyPI so HA can bump the pin and switch to err.challenge

Made with Cursor

Expose the MfaChallenge payload via a named attribute so callers
(Home Assistant) do not need to index args[0]. Bump to 0.4.2.
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