Skip to content

Conversation

@jukrebs
Copy link
Collaborator

@jukrebs jukrebs commented Sep 25, 2025

This PR adds logic for handling missing production and consumption OBIS codes.

Currently the client returns 0 if the registers:

  • "01-00:01.08.00*ff"
  • "01-00:02.08.00*ff"

are not present. This behavior is correct, as a user might think that the value is 0, although it is not present.

Therefore we add a return value of None, when missing.

Additionally tests are added.

@jukrebs jukrebs merged commit bc87516 into main Sep 25, 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