-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Add mA to SensorDeviceClass.CURRENT units #84492
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NumberDeviceClass docstring hasn't yet been adjusted |
Sorry, missing push. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This one was not missing; it was never supported, to begin with? The developer documentation always has been clear about that (which is evident since this PR also adjusts those). Should this be approved architecturally first? I'm not sure why they weren't supported; there might be reasoning for that. ../Frenck |
mA is already in use by wled, tuya, homematic, issy994 and custom_components. |
Which thus is incorrect according to our current developer documentation.
As per last comment:
|
I home that discussion helps. |
Side note, based on latest comments: Tuya currently implements a conversion function. core/homeassistant/components/tuya/const.py Lines 427 to 433 in a701630
|
Note: there is a conflict from recently added data_size/data_rate converters. |
fe29cfe
to
dd5d4c3
Compare
Please have a look at the linked frontend PR. |
Frontend is based on the device class. |
Thanks, i fixed the frontend PR. |
648822f
to
d389956
Compare
Rebased the PR to deal with a merge conflict |
There's still a conflict it seems. |
It is a new conflict caused by the merge of the Edit: Rebased again. |
d389956
to
55f2c76
Compare
Proposed change
Add mA to SensorDeviceClass.CURRENT unit assignement.
This one was missing in #84366
Fixes:
... is using native unit of measurement 'mA' which is not a valid unit for the device class ('current') it is using; Please update your configuration if your entity is manually configured, ...
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: