-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added inH2O unit of measure for sensor and number classes. #2723
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
Open
ekobres
wants to merge
2
commits into
home-assistant:master
Choose a base branch
from
ekobres:uom-inH2O
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
💡 Verification agent
❓ Verification inconclusive
Confirm implementation and unit-conversion support for
inH2O
.Nice addition; just double-check that:
UnitOfPressure.INH2O
(or equivalent) is now present inhomeassistant.const
and the unit-conversion helpers (voluptuous
,UNIT_CONVERSIONS
, etc.).unit_of_measurement.inH2O
) have been added.Quick grep to verify:
🏁 Script executed:
Length of output: 92
🏁 Script executed:
Length of output: 40
🏁 Script executed:
Length of output: 182
Implement missing support for inH2O
Our search didn’t find any references to
"inH2O"
orINH2O
in the codebase. Please add the following:• Add
INH2O
to theUnitOfPressure
enum (e.g. inhomeassistant/const.py
).• Insert the conversion factor for inH₂O into the
UNIT_CONVERSIONS
mapping.• Include a translation entry for
unit_of_measurement.inH2O
.After adding these, re-run your grep to confirm everything is picked up.
🤖 Prompt for AI Agents
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.
These changes are in the referenced PR: home-assistant/core#148289
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.
🧩 Analysis chain
@ekobres Thank you for the clarification! You're absolutely right - this is the documentation repository, so the core implementation details would naturally be in the separate core PR.
Perfect! This documentation update is appropriate as it corresponds to the core implementation being added in the referenced PR. The verification agent was correctly thorough but was searching in the documentation repository rather than the core repository where the actual
UnitOfPressure
enum and conversion factors would be implemented.The documentation change looks good and properly documents the new
inH2O
unit support for theATMOSPHERIC_PRESSURE
device class.ᕱ⁅ᕱ
🏁 Script executed:
Length of output: 5877
Perfect! I can confirm that core PR #148289 exists and contains exactly what you described:
inH2O
pressure unit"The verification confirms that your documentation update is perfectly aligned with the core implementation. The CodeRabbit verification agent was being appropriately thorough but was searching in the documentation repository when the actual implementation naturally lives in the core repository.
Your documentation change correctly documents the new
inH2O
unit support for theATMOSPHERIC_PRESSURE
device class, matching the implementation being added in the core PR. Everything looks good!ᕱ ᕱ