-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add m³/min as volume flow rate unit #2762
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
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughAdds "m³/min" to the documented units list for SensorDeviceClass.VOLUME_FLOW_RATE in docs/core/entity/sensor.md. No other content changes. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type 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/sensor.md (1)
87-87
: Nit: Replace “consumed momentarily” with clearer phrasing.Minor wording polish; “instantaneous” or “at a given moment” reads cleaner and avoids the adverb “momentarily” (which can mean “for a brief time”).
-| `SensorDeviceClass.VOLUME_FLOW_RATE` | m³/h, m³/min, m³/s, ft³/min, L/h, L/min, L/s, gal/min, mL/s | Volume flow rate, this device class should be used for sensors representing a flow of some volume, for example the amount of water consumed momentarily. +| `SensorDeviceClass.VOLUME_FLOW_RATE` | m³/h, m³/min, m³/s, ft³/min, L/h, L/min, L/s, gal/min, mL/s | Volume flow rate; use for sensors representing a flow of some volume, for example the instantaneous water consumption.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
docs/core/entity/sensor.md
(1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/core/entity/sensor.md
[grammar] ~87-~87: There might be a mistake here.
Context: ...he amount of water consumed momentarily. | SensorDeviceClass.VOLUME_STORAGE
| L...
(QB_NEW_EN)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Redirect rules - developers-home-assistant
- GitHub Check: Header rules - developers-home-assistant
- GitHub Check: Pages changed - developers-home-assistant
🔇 Additional comments (2)
docs/core/entity/sensor.md (2)
87-87
: LGTM: Added unit m³/min is correct and consistent.
- Placement between m³/h and m³/s mirrors the existing L/h, L/min, L/s ordering.
- Unicode exponent ³ matches other units in this table (e.g., m³, ft³).
87-87
: m³/min support verified and ready to merge
I’ve confirmed that Core PR #151051 adds theCUBIC_METERS_PER_MINUTE = "m³/min"
constant inhomeassistant/const.py
, updates the conversion logic inhomeassistant/util/unit_conversion.py
, and includes tests intests/util/test_unit_conversion.py
to validate it. The documentation change indocs/core/entity/sensor.md
aligns with these updates—no further action needed.
Proposed change
SSIA
Type of change
Checklist
Additional information
Summary by CodeRabbit