Add missing unit for signal strength#40436
Add missing unit for signal strength#40436MartinHjelmare merged 12 commits intohome-assistant:devfrom chemelli74:chemelli74-unit
Conversation
elupus
left a comment
There was a problem hiding this comment.
That isn't the only unit for signal strength. So the constant should be called decibel.
Added dBm as well. Simone |
|
@chemelli74 please replace string occurrences in the entire code base with the added constant :) |
ahahahah, this simple PR is getting more complex every comment :-S Simone |
springstan
left a comment
There was a problem hiding this comment.
LGTM 👍 thanks @chemelli74!
|
Sorry guys for all those commits but I don't get why pre-commit doesn't detect issues when run locally. Simone |
|
Is there a case where the measurement isn't a signal? I'd call sound a signal too. |
So you suggest to move const to "DECIBELS" and "DECIBELS_MILLIWATT" for reusing those not only for signal but also for sound ? |
|
No, I think sound can be considered a signal too. |
So we are good to merge ? |
|
@elupus what do you think? |
Proposed change
Using DEVICE_CLASS_SIGNAL_STRENGTH I noticed that corresponding unit was missing
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.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: