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

Improve restoring of energy meter at boot #25

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Conversation

jensrossbach
Copy link
Owner

@jensrossbach jensrossbach commented Nov 3, 2024

This pull request improves the restoring of the energy meter at boot by checking first if the last_energy_value number component already has a value and only if not registering a callback for state changes of that component.

Fixes #24

@jensrossbach jensrossbach added the code Changes to the code base label Nov 3, 2024
@jensrossbach jensrossbach self-assigned this Nov 3, 2024
@jensrossbach jensrossbach merged commit 1aa5417 into main Nov 3, 2024
@jensrossbach jensrossbach deleted the problem_report/24 branch November 3, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Changes to the code base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Energy meter might not be restored on boot
1 participant