-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add new integration for AiDot #37320
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: next
Are you sure you want to change the base?
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 site configuration. |
📝 WalkthroughWalkthroughThis pull request introduces a new documentation file for the AiDot integration with Home Assistant. The documentation includes metadata, configuration flow support, HomeKit compatibility, supported platforms, and details on specific supported devices (A19 and BR30). It outlines prerequisites for configuration, data update mechanisms, troubleshooting, and the removal process for the integration. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant HA as Home Assistant
participant CFG as Configuration Flow Guide
participant WL as Wi‑Fi Lights
U->>HA: Initiate configuration process
HA->>CFG: Retrieve setup instructions
CFG-->>HA: Return configuration guidance
HA->>WL: Send control command to A19/BR30 devices
WL-->>HA: Respond with status update
HA-->>U: Confirm integration setup and operational status
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🪧 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 (4)
source/_integrations/aidot.markdown (4)
22-25
: Improve Markdown Formatting for the Prerequisites SectionMarkdownlint reports the following for this section:
- Headings should be surrounded by blank lines (MD022).
- Lists should also be set off by blank lines (MD032).
- There is trailing whitespace on line 24 (MD009).
Additionally, the phrase on line 24 could be reworded for clarity. Consider changing
- Only login with username & password is supported.
to
- Login using username and password is supported.
Please add the necessary blank lines before and after the "## Prerequisites" heading and adjust the list formatting accordingly.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
22-22: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
23-23: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
24-24: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
35-38
: Enhance the Data Updates Section Formatting and WordingThere are a couple of improvements needed for this section:
- Ensure that the "## Data updates" heading is surrounded by blank lines (MD022) and that the list items are properly spaced (MD032).
- On line 38, the phrase "every one seconds" is grammatically incorrect. It should read "every second."
A suggested diff for line 38:
-- The integration will update its lights by polling the AiDot Bridge every one seconds for new values. +- The integration will update its lights by polling the AiDot Bridge every second for new values.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
35-35: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
36-36: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
45-45
: Remove Extra Blank LinesMarkdownlint indicates that there are multiple consecutive blank lines at line 45 (MD012), which can affect readability. Please ensure that only a single blank line is used here.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
45-45: Multiple consecutive blank lines
Expected: 1; Actual: 2(MD012, no-multiple-blanks)
46-54
: Ensure Consistent Formatting in Subsequent SectionsThe sections "## Troubleshooting" and "## Remove integration" appear clear. For consistency and readability with the rest of the document, please verify that each heading is surrounded by blank lines in accordance with markdown guidelines.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/aidot.markdown
(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/aidot.markdown
22-22: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
23-23: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
24-24: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
35-35: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
36-36: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
45-45: Multiple consecutive blank lines
Expected: 1; Actual: 2
(MD012, no-multiple-blanks)
🔇 Additional comments (1)
source/_integrations/aidot.markdown (1)
1-16
: Metadata Section Looks GoodThe YAML front matter is well structured with all the required fields for the integration documentation. No changes are needed here.
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 (5)
source/_integrations/aidot.markdown (5)
2-3
: Integration Name ConsistencyThere is a potential inconsistency in the integration name: the title on line 2 is "Aidot" while the description on line 3 uses "Aiot". Please verify and standardize the integration name (and its capitalization) for clarity and consistency across the documentation.
20-25
: Duplicate Inclusion of Config FlowThe tag
{% include integrations/config_flow.md %}
is used twice—once on line 20 and again on line 25. Confirm whether this repetition is intentional or if one instance should be removed to avoid duplication in the rendered output.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
22-22: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
23-23: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
24-24: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
22-25
: Improve Markdown Formatting for Prerequisites SectionThe heading "## Prerequisites" (line 22) and the subsequent list items (lines 23–24) should be surrounded by blank lines, as recommended by markdownlint (MD022 and MD032). Additionally, line 24 contains a trailing space. Consider applying the following diff to address these issues:
-{% include integrations/config_flow.md %} -## Prerequisites - - To be able to configure your machine in Home Assistant, your machine needs to be added to your account using the official AiDot app first. - - Only login with username & password is supported. +{% include integrations/config_flow.md %} +## Prerequisites + - To be able to configure your machine in Home Assistant, your machine needs to be added to your account using the official AiDot app first. + - Only login with username & password is supported.This creates clear separation around headings and list items while removing unwanted trailing spaces.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
22-22: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
23-23: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
24-24: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
36-39
: Correct Text and Formatting in Data Updates SectionThe "## Data updates" heading (line 36) should also be surrounded by blank lines. Moreover, the phrasing on line 39—“every one seconds for new values”—is grammatically awkward. Consider revising it to “every second” (or “every 1 second”) to improve clarity. For example:
- - The integration will update its lights by polling the AiDot Bridge every one seconds for new values. + - The integration will update its lights by polling the AiDot Bridge every second for new values.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
36-36: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
37-37: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
45-46
: Remove Extra Blank LinesThere are multiple consecutive blank lines around line 46 (MD012). Please reduce them to a single blank line to comply with markdown formatting standards.
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
46-46: Multiple consecutive blank lines
Expected: 1; Actual: 2(MD012, no-multiple-blanks)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/aidot.markdown
(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/aidot.markdown
22-22: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
23-23: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
24-24: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
36-36: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
37-37: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
46-46: Multiple consecutive blank lines
Expected: 1; Actual: 2
(MD012, no-multiple-blanks)
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 (4)
source/_integrations/aidot.markdown (4)
20-24
: Prerequisites Section Formatting
The prerequisites list is informative; however, please ensure that the heading is surrounded by blank lines per markdownlint MD022 and that list items are properly separated (MD032). Also, double-check for any trailing spaces (for example, in line 22).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
20-20: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
21-21: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
22-22: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
34-38
: Data Updates Section Wording
The data update instructions are clear and well organized. However, the phrase on line 37 ("every one seconds") appears to be a typographical error. Consider revising it to "every second" (or "once per second") for improved clarity.- - The integration will update its lights by polling the AiDot Bridge every one seconds for new values. + - The integration will update its lights by polling the AiDot Bridge every second for new values.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
34-34: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
35-35: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
39-44
: Supported Devices List Formatting
The list of supported devices (A19 and BR30) is correct; however, there appear to be extra consecutive blank lines (lines 43-44) that could trigger markdownlint MD012. Please remove any redundant blank lines to ensure consistency.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
44-44: Multiple consecutive blank lines
Expected: 1; Actual: 2(MD012, no-multiple-blanks)
1-52
: General Markdown Linting Recommendations
Please review and address markdownlint suggestions, such as ensuring that headings and lists are surrounded by proper blank lines (MD022, MD032), eliminating trailing spaces (MD009), and removing extra consecutive blank lines (MD012). This will help maintain a clean and standard-compliant documentation format.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
20-20: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
21-21: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
22-22: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
34-34: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
35-35: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
44-44: Multiple consecutive blank lines
Expected: 1; Actual: 2(MD012, no-multiple-blanks)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/aidot.markdown
(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/aidot.markdown
20-20: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
21-21: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
22-22: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
34-34: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
35-35: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
44-44: Multiple consecutive blank lines
Expected: 1; Actual: 2
(MD012, no-multiple-blanks)
🔇 Additional comments (5)
source/_integrations/aidot.markdown (5)
1-16
: YAML Front Matter Check
The metadata is well structured and appears to comply with the Home Assistant documentation requirements. Keys such astitle: AiDot
,ha_domain: aidot
, andha_release: 2024.6
correctly reflect previous suggestions. Please verify that these values align with the latest integration specifications.
18-19
: Introduction Text Clarity
The introductory sentence clearly explains the integration and includes a direct link to the AiDot website. Ensure that the consistent use of “AiDot” (as previously queried) is maintained.
25-33
: Configuration Block Validation
The configuration block using{% configuration_basic %}
is clearly defined and consistent with similar integrations. Confirm that this block meets the overall formatting and indentation standards; also, remove any possible trailing spaces.
45-48
: Troubleshooting Section Adequacy
This section is concise and meets the documentation standards—no additional information is required at this time.
49-52
: Remove Integration Section Clarity
The removal instructions leverage an include directive ({% include integrations/remove_device_service.md %}
) to maintain consistency with other documents. Confirm that this does not duplicate content from the prerequisites or other sections.
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 (4)
source/_integrations/aidot.markdown (4)
20-24
: Prerequisites Section: Address Markdown Linting.
While the content is clear, please adjust the markdown formatting to comply with style guidelines:
- Add blank lines above and below the "## Prerequisites" heading (MD022).
- Ensure that the list items are surrounded by blank lines (MD032).
- Remove the trailing space on line 22.
Example diff for line 22:
- - Only login with username & password is supported. + - Only login with username & password is supported.🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
20-20: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
21-21: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
22-22: Trailing spaces
Expected: 0 or 2; Actual: 1(MD009, no-trailing-spaces)
34-38
: Data Updates Section: Minor Formatting Suggestion.
The content effectively explains the update mechanism. However, to adhere to markdown best practices, please add a blank line before the "## Data updates" heading (MD022).🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
34-34: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below(MD022, blanks-around-headings)
35-35: Lists should be surrounded by blank lines
null(MD032, blanks-around-lists)
39-43
: Supported Devices Section is Concise and Clear.
The list of supported devices (A19 and BR30) is well presented. Consider verifying spacing (blank lines) before and after the heading to fully comply with markdownlint rules if needed.
44-44
: Remove Extra Blank Line.
There appears to be multiple consecutive blank lines at line 44. Please remove one of the blank lines to comply with markdownlint’s MD012 guideline (no multiple consecutive blank lines).
Example diff:- - +🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
44-44: Multiple consecutive blank lines
Expected: 1; Actual: 2(MD012, no-multiple-blanks)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_integrations/aidot.markdown
(1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/aidot.markdown
20-20: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
21-21: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
22-22: Trailing spaces
Expected: 0 or 2; Actual: 1
(MD009, no-trailing-spaces)
34-34: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below
(MD022, blanks-around-headings)
35-35: Lists should be surrounded by blank lines
null
(MD032, blanks-around-lists)
44-44: Multiple consecutive blank lines
Expected: 1; Actual: 2
(MD012, no-multiple-blanks)
🔇 Additional comments (5)
source/_integrations/aidot.markdown (5)
1-16
: Frontmatter Metadata is Well-Defined (Duplicate Confirmation).
The YAML frontmatter block correctly captures the integration’s metadata—including title, description, release version, IoT class, domain, and code owners—in line with Home Assistant documentation standards. This aligns with previous suggestions regarding the title and domain.
18-19
: Integration Overview is Clear (Duplicate Confirmation).
The introductory sentence clearly states the purpose of the AiDot integration and correctly uses the Home Assistant “{% term integration %}” convention. This is consistent with earlier review feedback.
25-32
: Configuration Snippet is Structured and Informative.
The block enclosed by{% configuration_basic %}
and{% endconfiguration_basic %}
clearly defines the configuration fields required for the integration.
45-48
: Troubleshooting Section is Clear.
The section succinctly notes that there are no known issues. This is acceptable; just ensure that heading spacing remains compliant with markdown standards.
49-51
: Remove Integration Section is Appropriately Modular.
Including the removal instructions via{% include integrations/remove_device_service.md %}
is a neat approach that leverages the centralized documentation.
Proposed change
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit