-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add documentation for new services for bosch_alarm #38368
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
Add documentation for new services for bosch_alarm #38368
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. |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request updates the Bosch Alarm integration documentation by adding a new "Actions" section. This section introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant I as Bosch Alarm Integration
participant P as Alarm Panel
U->>I: Request "Set panel date and time" with config_entry_id & (optional) datetime
I->>I: Validate required parameters (config_entry_id)
I->>P: Set panel date and time (apply provided datetime or default current datetime)
P-->>I: Acknowledge update
I-->>U: Return success response
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
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. 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 (3)
source/_integrations/bosch_alarm.markdown (3)
42-42: Remove trailing whitespace on line 42.Line 42 contains trailing spaces. Removing these will help comply with Markdown linting rules (MD009) and keep the file clean.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
42-42: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
48-48: Eliminate trailing spaces on line 48.Line 48 also has trailing whitespace. Please remove it to maintain consistent Markdown style.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
48-48: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
43-53: New "Actions" Section Documentation Looks Good.The newly added "Actions" section—which details the "Set panel date and time" action—is clear and well structured. The table correctly indicates that:
config_entry_idis required (by marking it as not optional), anddatetimeis optional with a default to the current date and time if omitted.For enhanced clarity, consider noting the accepted format for the
datetimeattribute if there’s a specific expected format (or linking to additional details). Overall, this addition aligns well with the PR objectives.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
48-48: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
42-42: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
48-48: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
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 (2)
source/_integrations/bosch_alarm.markdown (2)
51-54: List Indentation Adjustment for 'config_entry_id'
The nested bullet points for the Data attributeconfig_entry_idare indented with three spaces, but markdownlint expects two spaces. Adjusting this will improve readability on mobile devices.- - **Description**: The ID of the config entry to get the schedule from. - - **Optional**: No + - **Description**: The ID of the config entry to get the schedule from. + - **Optional**: No🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
52-52: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
53-53: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
55-58: List Indentation Adjustment for 'datetime'
Similarly, the nested bullet points for the Data attributedatetimeuse a three-space indentation. Please update lines 56 and 57 to use two spaces to comply with MD007 guidelines from markdownlint.- - **Description**: The date and time to set. Defaults to the current date and time if it is not set. - - **Optional**: Yes + - **Description**: The date and time to set. Defaults to the current date and time if it is not set. + - **Optional**: Yes🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
56-56: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
57-57: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
52-52: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
53-53: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
56-56: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
57-57: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
🔇 Additional comments (2)
source/_integrations/bosch_alarm.markdown (2)
43-46: Clear Action Section Introduction
The newly added "Actions" section is well integrated into the document and clearly introduces the new Bosch Alarm action. No issues found here.
47-50: Accurate and Informative Action Documentation
The "Set panel date and time" action is documented with clarity, explaining its purpose and usage effectively. Ensure that the style and terminology remain consistent with other integration documentation in the project.
c0ffeeca7
left a comment
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.
Thank you, @sanjay900 👍
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: 2
🧹 Nitpick comments (1)
source/_integrations/bosch_alarm.markdown (1)
65-68: Suggest adding a YAML usage example
To help users get started, include a code snippet showing how to call the new action in an automation. For example:service: bosch_alarm.set_date_time data: config_entry_id: YOUR_CONFIG_ENTRY_ID datetime: '2025-05-01T12:00:00'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
70-70: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
71-71: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
74-74: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
75-75: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
🔇 Additional comments (1)
source/_integrations/bosch_alarm.markdown (1)
61-64: New "Actions" section introduction looks good
The addition of the top‐level Actions section and its introductory text aligns with other integration docs.
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: 1
♻️ Duplicate comments (1)
source/_integrations/bosch_alarm.markdown (1)
69-75: 🛠️ Refactor suggestion
⚠️ Potential issueFix data attribute list indentation and descriptions
Adjust nested list indentation to 2 spaces to satisfy MD007, correct the
config_entry_iddescription, and clarify required vs optional:- - **Data attribute**: `config_entry_id` - - **Description**: The ID of the config entry to get the schedule from. - - **Optional**: No + - **Data attribute**: `config_entry_id` + - **Description**: The ID of the config entry for the Bosch Alarm integration. + - **Required**: Yes - - **Data attribute**: `datetime` - - **Description**: The date and time to set. Defaults to the current date and time if it is not set. - - **Optional**: Yes + - **Data attribute**: `datetime` + - **Description**: The date and time to set; defaults to now if not provided. + - **Optional**: Yes🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
70-70: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
71-71: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
74-74: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
75-75: Unordered list indentation
Expected: 2; Actual: 3(MD007, ul-indent)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/bosch_alarm.markdown(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/bosch_alarm.markdown
70-70: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
71-71: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
74-74: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
75-75: Unordered list indentation
Expected: 2; Actual: 3
(MD007, ul-indent)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (3)
source/_integrations/bosch_alarm.markdown (3)
7-7: Alignha_categoryordering with entity sectionsThe
ha_categorylist now places Switch after Sensor, matching the order in the "Provided entities" TOC and the individual sections below.
44-44: Correct "Provided entities" list orderingThe list now correctly reads:
- Alarm Control Panel
- Sensor
- Switch
This aligns with the order of the corresponding sections below.
50-51: Reordered "### Sensor" section appropriatelyThe Sensor subsection now appears before the Switch subsection, ensuring consistency with the TOC.
…stant.io into bosch_alarm_services
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)
source/_integrations/bosch_alarm.markdown (1)
107-115: Surround fenced YAML block with blank lines to satisfy MD031
The fenced code block inside the{% raw %}tags should have an empty line immediately after the opening fence and immediately before the closing fence. This ensures compliance withMD031(blanks-around-fences).Apply this diff:
@@ source/_integrations/bosch_alarm.markdown -{% raw %} +{% raw %} ```yaml # Example: Update the panel’s date and time service: bosch_alarm.set_date_time data: config_entry_id: "YOUR_CONFIG_ENTRY_ID" datetime: "2025-05-01T12:00:00"
{% endraw %}
<details> <summary>🧰 Tools</summary> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> 108-108: Fenced code blocks should be surrounded by blank lines null (MD031, blanks-around-fences) --- 114-114: Fenced code blocks should be surrounded by blank lines null (MD031, blanks-around-fences) </details> </details> </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **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** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between c8b7ccce5e960edca856483d9fb26334c9ea9e8a and 4c5bfb4d9ba6ccf7abd990a52ff46f27ba6a2388. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `source/_integrations/bosch_alarm.markdown` (1 hunks) </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>🪛 markdownlint-cli2 (0.17.2)</summary> <details> <summary>source/_integrations/bosch_alarm.markdown</summary> 108-108: Fenced code blocks should be surrounded by blank lines null (MD031, blanks-around-fences) --- 114-114: Fenced code blocks should be surrounded by blank lines null (MD031, blanks-around-fences) </details> </details> </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
c0ffeeca7
left a comment
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.
Thank you, @sanjay900 👍
Proposed change
Add documentation for date and time service for bosch alarm
Type of change
currentbranch).currentbranch).nextbranch).nextbranch).Additional information
Checklist
currentbranch.nextbranch.Summary by CodeRabbit