-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update number device classes #2580
Conversation
📝 WalkthroughWalkthroughThe documentation update in Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs/core/entity/number.md (1)
75-75
: SULPHUR_DIOXIDE Constant – Spelling ReviewThe description reads "Concentration of sulphure dioxide." Please confirm if the spelling "sulphure" is intentional or if it should be corrected to "sulphur" (or "sulfur") to maintain consistency with standard terminology.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/core/entity/number.md
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - developers-home-assistant
- GitHub Check: Header rules - developers-home-assistant
- GitHub Check: Pages changed - developers-home-assistant
🔇 Additional comments (21)
docs/core/entity/number.md (21)
34-34
: APPARENT_POWER Constant – Formatting ConfirmationThe definition for
NumberDeviceClass.APPARENT_POWER
appears unchanged content-wise and only reflects formatting adjustments.
36-36
: AREA Constant – Formatting UpdatedThe
NumberDeviceClass.AREA
entry now has corrected formatting for the supported units list. No content change is observed.
37-37
: ATMOSPHERIC_PRESSURE Unit List – Verify Intended UnitsThe updated line for
NumberDeviceClass.ATMOSPHERIC_PRESSURE
includes bothmmHG
andinHg
. The PR objective mentioned updating the unit frominHg
tommHg
to align with sensor documentation. Please verify whether the inclusion ofinHg
is intentional or if it should be removed.
40-40
: CO2 Constant Renamed CorrectlyThe constant has been renamed to
CO2
fromCARBON_DIOXIDE
and the description is accurate.
41-41
: CO Constant Renamed CorrectlyThe change from
CARBON_MONOXIDE
toCO
is clear and consistent with the updated documentation.
46-46
: DISTANCE Constant – Nautical Miles AddedThe supported units for
NumberDeviceClass.DISTANCE
now includenmi
(nautical miles) as intended.
47-47
: DURATION Constant – New AdditionThe new
NumberDeviceClass.DURATION
has been added with a clear description and appropriate time units. This aligns with the sensor documentation pattern.
48-48
: ENERGY Constant – Formatting and ClarityAlthough there is a tilde marking on this line, the content and description for
NumberDeviceClass.ENERGY
remain consistent. The minor formatting adjustment is acceptable.
58-58
: NITROGEN_DIOXIDE Constant – Formatting ReviewedThe definition of
NumberDeviceClass.NITROGEN_DIOXIDE
appears correctly formatted with no content changes.
59-59
: NITROGEN_MONOXIDE Constant – Formatting ReviewedThis definition is clear and matches the intended description.
60-60
: NITROUS_OXIDE Constant – Formatting ReviewedThe
NumberDeviceClass.NITROUS_OXIDE
entry is correctly formatted and the description is accurate.
61-61
: OZONE Constant – Formatting ReviewedThe entry for
NumberDeviceClass.OZONE
is updated in formatting while retaining its accurate description.
62-62
: PH Constant – Formatting ReviewedThe
NumberDeviceClass.PH
entry is now up-to-date and clearly stated.
63-63
: PM1 Constant – Formatting ReviewedThe entry for
NumberDeviceClass.PM1
is clear and accurate.
64-64
: PM25 Constant – Formatting ReviewedThe
NumberDeviceClass.PM25
constant is correctly formatted with an accurate description.
65-65
: PM10 Constant – Formatting ReviewedThe presentation for
NumberDeviceClass.PM10
is now clearer with the updated formatting.
68-68
: PRECIPITATION Description – Clarification ConfirmedThe description for
NumberDeviceClass.PRECIPITATION
now explicitly states "Accumulated precipitation," which enhances clarity.
70-70
: PRESSURE Constant – Verify Unit ConsistencyFor
NumberDeviceClass.PRESSURE
, the supported units still include bothmmHg
andinHg
. Since the update guidance mentioned changing the unit frominHg
tommHg
, please confirm ifinHg
should be removed to maintain consistency with the sensor device classes.
71-71
: REACTIVE_POWER Constant – Formatting UpdatedThe
NumberDeviceClass.REACTIVE_POWER
constant is now properly formatted with a concise description.
78-78
: VOLATILE_ORGANIC_COMPOUNDS_PARTS – New Addition ConfirmedThe new constant
NumberDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS
is added with the correct supported units and a clear description.
81-81
: VOLUME_FLOW_RATE Constant – Formatting ReviewedThe definition for
NumberDeviceClass.VOLUME_FLOW_RATE
appears clear and its formatting is consistent with the other entries.
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.
Thanks, @TheJulianJES 👍
../Frenck
Proposed change
This PR updates the docs for all number device classes. These should mostly match sensor device classes, but the dev docs weren't being updated as well as the dev docs for the sensor device classes. The following is done:
NumberDeviceClass.DURATION
NumberDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS
NumberDeviceClass.CO2
NumberDeviceClass.CO
SensorDeviceClass
docsType of change
Additional information
Summary by CodeRabbit
New Features
Documentation