-
-
Notifications
You must be signed in to change notification settings - Fork 221
Rename current_consumption
to power
#1349
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1349 +/- ##
=======================================
Coverage 92.13% 92.13%
=======================================
Files 122 122
Lines 7867 7867
Branches 810 810
=======================================
Hits 7248 7248
Misses 454 454
Partials 165 165 ☔ View full report in Codecov by Sentry. |
I agree with the setting to zero, but I’m not sure about the value of the rename. Whilst I get that it’s a bit confusing, we’re still left with |
Yeah I was starting to doubt the cost of the change relative to its’ value. I can see that it would cost the long term history graphs of the power draw metrics in home assistant, but from what I could tell it would leave the energy monitoring integration mostly intact since that uses the accumulated consumption metrics instead of the instantaneous demand values. I think the term just confuses me since it is I’ll get the zero setting extracted into a separate PR, since there’s no use in holding that back for this PR. |
6c83936
to
0963d6f
Compare
- Fix: Report `0` instead of `None` for current when current is zero. - Fix: Report `0` instead of `None` for voltage when voltage is zero (not that this was possible to see).
I've extracted the zero power reporting fix into PR #1483 |
- Note: This is a breaking change. - Fix: Rename `current_consumption` to `power` in energy modules, to deconflict and clarify.
We could still look into renaming while keeping the deprecated names available for the time being. The only one we cannot change that easily is the feature identifier (which is used as a unique key). |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
current_consumption
topower
in energy modules, to deconflict and clarify.0
instead ofNone
for current when current is zero.0
instead ofNone
for voltage when voltage is zero (not that this was possible to see).