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 when getting alarms and timers to better allow for debugging #103

Conversation

DurgNomis-drol
Copy link
Collaborator

@DurgNomis-drol DurgNomis-drol commented Mar 22, 2021

This should handle these to problems and allow for us in the future to better debug if the underlaying package is throwing an exceptions when retrieving data from each device.

We need some one with problem to test it first so we can confirm that it solves the problem. I have tested it on my machine and it works.

Should close #100 and #102

More info:

The error both of them gets, is an exception thrown by, in this case, aiohttp because those devices does not conform. We should just skip those devices and log them.

@DurgNomis-drol DurgNomis-drol linked an issue Mar 22, 2021 that may be closed by this pull request
@DurgNomis-drol
Copy link
Collaborator Author

@leikoilja @KapJI What do you guys think?

@DurgNomis-drol DurgNomis-drol added the bug Something isn't working label Mar 22, 2021
custom_components/google_home/api.py Outdated Show resolved Hide resolved
@DurgNomis-drol
Copy link
Collaborator Author

Confirmed to solve the issue so far.

Copy link
Collaborator

@KapJI KapJI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@DurgNomis-drol DurgNomis-drol merged commit cbec6c2 into leikoilja:master Mar 22, 2021
@DurgNomis-drol DurgNomis-drol deleted the add-better-exception-handling-for-aiohttp branch March 22, 2021 17:49
@leikoilja
Copy link
Owner

Yay 🥳 thank you guys for taking care of it 💥🤩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No sensors created - SSL handshake failure Error requesting sensor data
3 participants