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
Adjust WeatherFlow air density sensor device class and unit #101777
Adjust WeatherFlow air density sensor device class and unit #101777
Conversation
Hey there @jeeftor, 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.
Looks good, I just had one question.
suggested_display_precision=3, | ||
raw_data_conv_fn=lambda raw_data: raw_data.m * 1000000, | ||
suggested_display_precision=5, | ||
raw_data_conv_fn=lambda raw_data: raw_data.magnitude, |
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.
I don't understand the reason for .magnitude
here, but probably I am missing something.
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.
The pyweatherflowudp library uses Pint which has a Quantity (value + unit) class. That class has a shortcode property .m
which is the same as .magnitude
. It's only .magnitude
here to match the rest of the sensors in the file.
Looks good to me but would be good to get confirmation from @jeeftor since this is a breaking change. |
Looks good to me too |
But i was on vacation and then got the corona virus... so I'm most tardy to respond. |
No worries, considering Nate did the original integration I was confident about merging. Feel better soon! |
Breaking change
Removes the VOC device class from the air density sensor and adjusts the unit to kg/m³
Proposed change
Adjust WeatherFlow air density sensor device class and unit
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: