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

remove ELECTRIC_CURRENT_AMPERE device class declaration from Ah unit … #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

randyoo
Copy link

@randyoo randyoo commented Jun 14, 2023

…registers

Since "Ah" is a unit of charge, not current, it's not appropriate to use the "current" device class.

This is to address the issue #86 that I just opened--I'm not quite sure if I got the syntax right.

…registers

Since "Ah" is a unit of charge, not current, it's not appropriate to use the "current" device class.
@sfstar
Copy link
Owner

sfstar commented Jun 16, 2023

Thanks for opening this PR.
I understand the issue.
The amperage unit was assigned due to the lack of Ah/mAh being a valid unit of measurement.
This is indeed incorrect.

However, instead of going to unit of measurement of type none I would rather add Ah/mAh as valid units of measurement to home assistant.
Therefore, I will keep this PR open as a backup but the main attempt will focus on getting:
home-assistant/core#94730

approved for the core repository.
If this were to be declined I will go forward with changing these registers to None

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