Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Correct reactive power device class #1417

Merged
merged 3 commits into from
Dec 1, 2024

Conversation

N3rdix
Copy link
Contributor

@N3rdix N3rdix commented Nov 30, 2024

fixes #1403 partially by giving a device class for reactive power sensors.

There is no device class for reactive energy so far, means this cannot be fixed and does not have a device class assigned on purpose: https://developers.home-assistant.io/docs/core/entity/sensor/
Once HA provides a device class for it it can be added here...

@N3rdix N3rdix temporarily deployed to continuous-integration November 30, 2024 10:59 — with GitHub Actions Inactive
@drc38
Copy link
Collaborator

drc38 commented Nov 30, 2024

Suggest amending energy to exclude energy.r from getting a device class.

@N3rdix N3rdix temporarily deployed to continuous-integration December 1, 2024 06:51 — with GitHub Actions Inactive
Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (a55913c) to head (5e31335).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1417      +/-   ##
==========================================
+ Coverage   94.30%   94.31%   +0.01%     
==========================================
  Files          12       12              
  Lines        1931     1935       +4     
==========================================
+ Hits         1821     1825       +4     
  Misses        110      110              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@drc38 drc38 merged commit 51bc142 into lbbrhzn:main Dec 1, 2024
8 checks passed
lbbrhzn pushed a commit that referenced this pull request Jan 5, 2025
* fix state_class

* add test for reactive sensor

* Revert test_init.py

* Add HA unit

* Add OCPP to HA unit mapping

* add assert vor reactive unit

* add separate sensor test

---------

Co-authored-by: drc38 <20024196+drc38@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"The unit of measurement of some entities has changed" warning messages
2 participants