-
Notifications
You must be signed in to change notification settings - Fork 114
feat: Configuration Option to Update Password #620
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
base: master
Are you sure you want to change the base?
Conversation
|
Tested – currently not working. Steps to reproduce:
Notes:
|
|
Confirmed - If we set the attempts to 1. We can set an incorrect password and it fails login. If we then set the correct password, login is successful when attempting login again. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
Added error handling for "Throttled" login attempts and "Incorrect Password". |
for more information, see https://pre-commit.ci
|
|
||
| _LOGGER.debug( | ||
| "Preparing options form for %s with default scan interval: %s minutes, initial scan: %s, active scan: %s", | ||
| "Preparing options form for %s with defaults", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reduce maintenance.
|
Tested and all is working as expected. Single login attempt if wrong password entry, and single attempt if throttled error is returned. |
|
Ideally this should follow the standard for incorrect username / password. Login should detect that specific error and throw an exception that home assistant triggers the re-auth flow. The exception is a ConfigEntryAuthFailed. https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reauthentication-flow/ It is also nice where you can edit whenever you want which I think this PR does nicely. |
Uh oh!
There was an error while loading. Please reload this page.