-
-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Schlage integration requiring reauth every few hours since 2023.12 upgrade #105270
Comments
Hey there @dknowles2, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) schlage documentation |
Supporting the theory that the re-auth flow is being triggered by some transient API error, reloading the integration without responding to the re-auth prompt also restores the entities. I should be able to automate a workaround based upon entities going to Unavailable for a certain time period. Unfortunately reloading the integration does not clear the re-auth notification or remove the prompt to reconfigure the integration from Devices and services. I suspect an HA restart also clears it, which i will try when I'm next prompted to re-auth. |
I am also experiencing this issue, and it does seem to line up with this update for me as well |
I saw this appear on my instance as well, and I agree with the assessment here. My guess is that the API is sometimes returning a 401, which we treat as an unauthorized error, per HTTP spec. (https://github.com/dknowles2/pyschlage/blob/main/pyschlage/auth.py#L68-L69) But there's a different class of unauthorized error from the API that is more application-specific (https://github.com/dknowles2/pyschlage/blob/main/pyschlage/auth.py#L42-L45), which makes me think that the 401 error is a transient error coming from a proxy or LB somewhere in the serving stack. I'll cut a new pyschlage release later tonight to remove the |
Same Issue. |
Unfortunate for me, the Schlage re-authentication issue is still occurring. I have updated to the latest version as shown below: Core |
@cnovicktx I don't believe this has been included in a released version yet, just merged into dev. |
Correct. Also note that restarting HA will resolve the issue without needing to actually reauthenticate. |
The problem
Since updating to HA Core 2023.12, entities exposed by the Schlage integration (two Encode locks) have gone Unavailable and notifications have prompted me to re-authenticate to Schalge (3 times in the past 24 hours since I've updated to 2023.12).
I suspect but cannot confirm that the reauth support added in #103351 is now triggering the reauth flow as a result of transient errors polling the API which were ignored before.
What version of Home Assistant Core has the issue?
core-2023.12.0
What was the last working version of Home Assistant Core?
core-2023.11.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Schlage
Link to integration documentation on our website
https://www.home-assistant.io/integrations/schlage
Diagnostics information
config_entry-schlage-2a78206c4fb8bf11f008c1bfe97eaf5d.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: