-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Improve UniFi Protect re-auth #110021
Improve UniFi Protect re-auth #110021
Conversation
Hey there @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Co-authored-by: J. Nick Koston <nick@koston.org>
Can be tested as a CC with
I'll come back and tag this one for backport once we have confirmation its fixed I still need to test it myself but I've been swamped investigating release issues so I haven't had a chance yet |
I've run this for a few weeks without issues |
Proposed change
UniFi OS is issuing unexpected 401s now. Only some users get them, but they seem to be some form of rate limiting. As a result, this uses HA's built in exponential backoff for retrying config entry setup to retry and existing config entry since it might be getting rate limited.
Type of change
Additional information
Checklist
ruff format 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
.To help with the load of incoming pull requests: