GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Rename `current_consumption` to `power` by ryenitcher · Pull Request #1349 · python-kasa/python-kasa Conversation
Contributor
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- 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). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.