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

Catch exceptions during app registration #2533

Merged

Conversation

jpelgrom
Copy link
Member

Summary

This PR handles any exceptions thrown after logging in to Home Assistant while doing initial registration of the app (issue #2519), by asking the user to check their configuration.

I've also updated the launch screen theme's AlertDialog theme to remove the Home Assistant logo as the dialog's background on API < 31.

Screenshots

Light Dark
A dialog with the text 'Unable to connect to Home Assistant. Failed to perform SSL handshake, please ensure your certificate is valid.', light theme A dialog with the text 'Unable to connect to Home Assistant. Failed to perform SSL handshake, please ensure your certificate is valid.', dark theme

Link to pull request in Documentation repository

n/a

Any other notes

The next step to really fix/solve #2519 would be to bundle an up-to-date version of Conscrypt with the app for OkHttp. I'm not including that here because it would create a conflict with #2526, let's allow that to be merged first.

 - Catch any exceptions thrown during app registration (after webview login) instead of crashing. There should only be a few errors possible here that are not encountered in the webview.
 - Set dialog theme to fix background on API <31
@JBassett JBassett merged commit 22ee199 into home-assistant:master May 23, 2022
@jpelgrom jpelgrom deleted the onboarding-ssl-exception-handling branch May 23, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants