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

Add filter to sensors #15

Merged
merged 4 commits into from
May 30, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Catch RecursionError, mostly when debugging
  • Loading branch information
dala318 committed May 30, 2022
commit 166424624ba8d62ecf9e8d577eee188566392f19
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def shutdown(event):

try:
self.device_client.run(once=False)
except device.DeviceError:
except (device.DeviceError, RecursionError):
_LOGGER.exception("Failed to read data, attempting to recover")
self.device_client.close()
self._fails += 1
Expand Down