Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-auth prompt on BadCredentialsException #430

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Conversation

GSzabados
Copy link
Contributor

This should fix Nest Protect integration for Home Assistant looses authentication after home assistant restarts #341, where the integration really has to be-authenticate.

This should fix Nest Protect integration for Home Assistant looses authentication after home assistant restarts
iMicknl#341, where the integration really has to be-authenticate.
@GSzabados GSzabados requested a review from iMicknl as a code owner February 17, 2025 23:12
@iMicknl iMicknl requested a review from Copilot February 18, 2025 22:13

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

custom_components/nest_protect/init.py:248

  • [nitpick] The error message 'Need to re-authenticate the integration' could be more informative. Consider providing more context, such as 'Bad credentials detected. Please re-authenticate the Nest Protect integration.'
LOGGER.debug("Need to re-authenticate the integration")

custom_components/nest_protect/init.py:247

  • Ensure that the new behavior for handling 'BadCredentialsException' and raising 'ConfigEntryAuthFailed' is covered by tests.
except BadCredentialsException as exception:
@iMicknl iMicknl merged commit c4728a6 into iMicknl:main Feb 19, 2025
2 of 3 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.

2 participants