Skip to content

Conversation

@jukrebs
Copy link
Collaborator

@jukrebs jukrebs commented Oct 8, 2025

This PR add two new exception types. Both are returned when their respective resource returns a HTTP 404. In that case the IOmeter bridge is reachable, but can't return an answer.

When /v1/status returns HTTP 404, IOmeterNoStatusError is thrown.
When /v1/reading returns HTTP 404, IOmeterNoReadingsError is thrown.

Especially the second exception is very helpful in cases were the bridge returns no reading due to not being attached to a meter.

@jukrebs jukrebs merged commit ce7f2ac into main Oct 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants