-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Use auth token in Ezviz #54663
Use auth token in Ezviz #54663
Conversation
Hey there @BaQs, mind taking a look at this pull request as it has been labeled with an integration ( |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
f3b6a3d
to
c9c6d95
Compare
d7c967a
to
5ce4ec6
Compare
5ce4ec6
to
c076ef7
Compare
@RenierM26 Could you resolve the merge conflict by rebasing this PR onto the latest |
c99ccf4
to
b045894
Compare
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
not really stale, just happening a lot. Sorry, but it (again) needs rebasing :( |
b045894
to
a73027e
Compare
ca811b7
to
6f2d5e0
Compare
Looks good, it will be in 2023.4…thanks for bearing with us. |
* Initial commit * Revert "Initial commit" This reverts commit 452027f1a3c1be186cedd4115cea6928917c9467. * Change ezviz to token auth * Bump API version. * Add fix for token expired. Fix options update and unload. * Fix tests (PLATFORM to PLATFORM_BY_TYPE) * Uses and stores token only, added reauth step when token expires. * Add tests MFA code exceptions. * Fix tests. * Remove redundant try/except blocks. * Rebase fixes. * Fix errors in reauth config flow * Implement recommendations * Fix typing error in config_flow * Fix tests after rebase, readd camera check on init * Change to platform setup * Cleanup init. * Test for MFA required under user form * Remove useless if block. * Fix formating after rebase * Fix formating. * No longer stored in the repository --------- Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
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.
Please address the comments in a new PR. Thanks!
Proposed change
-Changes ezviz authentication to make use of token instead of username/password. This will allow users to re-enable MFA on Ezviz account after initial setup.
Not really a breaking change but users will need to reauthenticate.
Tip for testers:
In the ezviz android app, you can remove "terminal bindings" on the same screen as where you enable MFA (MFA needs to be enabled). This revokes a long live token. The integration would then need to reauth. (just remember to disable MFA again)
Implementing MFA should be much easier after this pull request is merged.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: