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

Try/catch for individual sensor updates #3203

Merged

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Jan 7, 2023

Summary

While discussing an issue with @dshokouhi we noticed that exceptions weren't being caught for individual sensor updates. This PR fixes that by using try/catch in the same places it would be added in the updateSensors function.

Probably fixes #3152

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - Individual sensor update exceptions weren't caught like for multiple sensor updates
@jpelgrom jpelgrom force-pushed the try-catch-individual-sensor-updates branch from cca056d to d3f933e Compare January 7, 2023 21:11
@JBassett JBassett merged commit 081fd8b into home-assistant:master Jan 11, 2023
@jpelgrom jpelgrom deleted the try-catch-individual-sensor-updates branch January 11, 2023 21:45
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.

Recent Crash - Failed to connect during sensor update
3 participants