Add missing pressure units to the atmospheric_pressure device class - #47644
Add missing pressure units to the atmospheric_pressure device class#47644Bre77 wants to merge 1 commit into
Conversation
|
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
cfdc3cf to
47ac961
Compare
There was a problem hiding this comment.
Pull request overview
Updates the sensor and number integration documentation so the atmospheric_pressure device class lists the same supported units as the underlying UnitOfPressure set (and as the already-documented pressure device class), fixing an omission in the unit list.
Changes:
- Add the missing supported units (
mPaandinH₂O) to the documented atmospheric_pressure device class unit list. - Align the atmospheric_pressure unit list ordering/content with the existing pressure device class unit list in the same pages.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| source/_integrations/sensor.markdown | Updates the atmospheric_pressure device class bullet to include mPa and inH₂O, matching the documented pressure units. |
| source/_integrations/number.markdown | Updates the atmospheric_pressure device class bullet to include mPa and inH₂O, matching the documented pressure units. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Proposed change
The documented unit list for the
atmospheric_pressuredevice class is missing two units it accepts.atmospheric_pressureandpressureboth take their valid units fromset(UnitOfPressure), so the same units are valid for both, but theatmospheric_pressurebullet omitsmPaandinH₂O. This brings it into line with thepressurebullet in the same files, which already lists the full set.Related: home-assistant/developers.home-assistant#3316
Type of change
currentbranch).currentbranch).nextbranch).nextbranch).Additional information
Checklist
currentbranch.nextbranch.