-
-
Notifications
You must be signed in to change notification settings - Fork 963
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 step documentation for NumberSelector #2442
base: master
Are you sure you want to change the base?
Conversation
Warning Rate limit exceeded@epenet has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 31 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 Walkthrough📝 Walkthrough📝 Walkthrough📝 Walkthrough📝 Walkthrough📝 WalkthroughWalkthroughThe changes introduce an enhancement to the Number Selector functionality in the Home Assistant framework by adding an Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ConfigFlow
participant NumberSelector
User->>ConfigFlow: Specify number selection
ConfigFlow->>NumberSelector: Pass number with as_int parameter
NumberSelector-->>ConfigFlow: Return integer value
ConfigFlow-->>User: Confirm selection
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
🧹 Outside diff range and nitpick comments (3)
blog/2024-11-08-number_selector.md (3)
4-4
: Improve title clarity and capitalizationRevise the title to be more specific and follow sentence-style capitalization:
-title: "Return an integer in number selector" +title: "Number selector adds integer return value support"
7-9
: Make the introduction more direct and authoritativeThe introduction should be more direct and assertive, following the Microsoft Style Guide:
-The [Number selector](https://www.home-assistant.io/docs/blueprint/selectors/#number-selector) has been expanded and now also includes an `as_int` parameter. - -Using this in [config flows](/docs/data_entry_flow_index#show-form) will remove the need to add an extra validation to the schema. +The [Number selector](https://www.home-assistant.io/docs/blueprint/selectors/#number-selector) now includes an `as_int` parameter. + +Set this parameter in [config flows](/docs/data_entry_flow_index#show-form) to eliminate the extra schema validation step.
11-40
: Reorganize examples for better clarityImprove the example section by:
- Showing the old code first, then the new code
- Using more descriptive labels
-Example: +Previous implementation (with explicit integer conversion): + +[code block with old implementation] + +New implementation (using as_int parameter): + +[code block with new implementation]
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
blog/2024-11-08-number_selector.md
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
blog/2024-11-08-number_selector.md (6)
Pattern */**(html|markdown|md)
: - For instructional content in documentation, use a direct and authoritative tone. Avoid expressions of politeness such as 'may' or 'please', and ensure the goal of the instruction is fronted.
- Apply the Microsoft Style Guide to ensure documentation maintains clarity and conciseness.
- In step-by-step instructions, front the location phrase in the instructional sentence.
- In step-by-step instructions, front the 'goal' in the instructional sentence.
- In step-by-step instructions, if in doubt what to front, front the 'goal' before the location phrase in the instructional sentence.
- do not hyphenate terms like 'top-right' or 'bottom-left' with 'corner'
Pattern */**(html|markdown|md)
: - Use bold to mark UI strings.
- If "" are used to mark UI strings, replace them by bold.
Pattern */**(html|markdown|md)
: - Be brief in your replies and don't add fluff like "thank you for..." and "Please let me know if"
Pattern */**(html|markdown|md)
: - Use sentence-style capitalization also in headings.
Pattern */**(html|markdown|md)
: do not comment on HTML used for icons
Pattern */**(html|markdown|md)
: Avoid flagging inline HTML for embedding videos in future reviews for this repository.
Coverted to draft as I think this isn't the path this is taking. |
Proposed change
Linked to home-assistant/core#130104
Type of change
Additional information
Summary by CodeRabbit
New Features
as_int
parameter in the Number Selector functionality, allowing users to specify selected numbers as integers directly.Improvements