Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update pi_hole.markdown for API V6 #39459

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

Open
wants to merge 2 commits into
base: next
Choose a base branch
from
Open

Conversation

HarvsG
Copy link
Contributor

@HarvsG HarvsG commented Jun 10, 2025

Proposed change

Update for changes in V6 API.
Also adds some config info re SSL that wasn't there before

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

  • Link to parent pull request in the codebase: Enable Pihole API v6 core#145890
  • Link to parent pull request in the Brands repository:
  • This PR fixes or closes issue: fixes #

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • Documentation
    • Improved and clarified the Pi-hole integration documentation with enhanced field descriptions and configuration details.
    • Added guidance for API Key or App Password setup, including version-specific instructions.
    • Documented new SSL-related configuration options.
    • Updated action and attribute descriptions for greater clarity.

@home-assistant home-assistant bot added has-parent This PR has a parent PR in a other repo next This PR goes into the next branch labels Jun 10, 2025
Copy link

netlify bot commented Jun 10, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 01ae2ac
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/6847d6e387858100085f7cc4
😎 Deploy Preview https://deploy-preview-39459--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

coderabbitai bot commented Jun 10, 2025

📝 Walkthrough

Walkthrough

The Pi-hole integration documentation was updated to provide clearer descriptions, specify typical port values, and clarify the handling of SSL and API credentials. New configuration options for API key/app password and SSL settings were added, with distinctions between Pi-hole versions. Action parameter explanations were also refined for accuracy.

Changes

File(s) Change Summary
source/_integrations/pi_hole.markdown Enhanced and clarified integration documentation; added details on ports, SSL, API credentials, and updated action parameter descriptions.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Documentation
    participant Pi-hole

    User->>Documentation: Reads integration setup instructions
    Documentation-->>User: Provides details (host, port, API key/app password, SSL options)
    User->>Pi-hole: Configures integration using provided instructions
    Pi-hole-->>User: Responds according to specified version and configuration
Loading

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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/pi_hole.markdown (4)

36-36: Grammar and punctuation in Location description
Capitalize the sentence and add a comma after “API” for clarity.
Apply this diff:

-| `Location` | the path to the admin page. In the version 6 API this will be ignored. | /admin |
+| `Location` | The path to the admin page. In version 6 API, this will be ignored. | /admin |
🧰 Tools
🪛 LanguageTool

[uncategorized] ~36-~36: Possible missing comma found.
Context: ...ath to the admin page. In the version 6 API this will be ignored. | /admin | | `API...

(AI_HYDRA_LEO_MISSING_COMMA)


38-39: Fix SSL certificate wording
Two minor grammar fixes: use “a certificate” instead of “an Certificate” and simplify the verify description.

-| `Uses an SSL certificate` | Whether your Pi-hole has an Certificate, typically true for `https` connections and false for `http`. | :white_check_mark: |
+| `Uses an SSL certificate` | Whether your Pi-hole has a certificate (true for `https`, false for `http`). | :white_check_mark: |

-| `Verify SSL certificate` | Whether to use verify your Pi-hole's certificate, ignored in Pi-hole API version 5. | :white_check_mark: |
+| `Verify SSL certificate` | Whether to verify your Pi-hole's certificate (ignored in API v5). | :white_check_mark: |
🧰 Tools
🪛 LanguageTool

[misspelling] ~38-~38: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...certificate| Whether your Pi-hole has an Certificate, typically true forhttps`...

(EN_A_VS_AN)


37-37: Consolidate API Key and App Password instructions
The table entry and the following paragraphs describe the same steps for obtaining credentials. Consider merging into one guided note or linking to a separate “Configuration” section to reduce duplication.

Also applies to: 43-45


57-58: Clarify duration type and format
timedelta may be unclear for users. Recommend specifying the string format (e.g., "HH:MM") and updating the type accordingly.

-| `duration` | `True` | timedelta | Time for which Pi-hole should be disabled. `'0'` will enable blocking indefinitely. |
+| `duration` | `True` | string | Duration in `"HH:MM"` format (e.g., `"00:30"`). Use `'0'` for indefinite blocking. |
📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 5c663af and 9253459.

📒 Files selected for processing (1)
  • source/_integrations/pi_hole.markdown (2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/pi_hole.markdown

[uncategorized] ~36-~36: Possible missing comma found.
Context: ...ath to the admin page. In the version 6 API this will be ignored. | /admin | | `API...

(AI_HYDRA_LEO_MISSING_COMMA)


[misspelling] ~38-~38: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...certificate| Whether your Pi-hole has an Certificate, typically true forhttps`...

(EN_A_VS_AN)

⏰ 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 (1)
source/_integrations/pi_hole.markdown (1)

33-34: Host and Port descriptions look clear and accurate
The reworded descriptions for Host and Port correctly reflect typical values and usage.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (6)
source/_integrations/pi_hole.markdown (6)

36-36: Capitalize description and refine grammar.

Start the description with a capital letter and adjust phrasing for consistency:

-| `Location` | the path to the admin page. In the version 6 API this will be ignored. | /admin |
+| `Location` | The path to the admin page. In API version 6, this will be ignored. | /admin |
🧰 Tools
🪛 LanguageTool

[uncategorized] ~36-~36: Possible missing comma found.
Context: ...ath to the admin page. In the version 6 API this will be ignored. | /admin | | `API...

(AI_HYDRA_LEO_MISSING_COMMA)


37-37: Unify Settings path references.

Use consistent terminology for the Settings UI:

-| `API Key or App Password` | This can be found in your Pi-hole's Settings -> API (expert mode). | `585a2fe...` |
+| `API Key or App Password` | This can be found in your Pi-hole's _Settings > Web Interface/API_ (Expert mode). | `585a2fe...` |

38-38: Fix indefinite article and improve phrasing.

Use "a certificate" and tighten the wording:

-| `Uses an SSL certificate` | Whether your Pi-hole has an Certificate, typically true for `https` connections and false for `http`. | {% icon "openmoji:check-mark" %} |
+| `Uses an SSL certificate` | Whether your Pi-hole has a certificate (true for `https`, false for `http`). | {% icon "openmoji:check-mark" %} |
🧰 Tools
🪛 LanguageTool

[misspelling] ~38-~38: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...certificate| Whether your Pi-hole has an Certificate, typically true forhttps`...

(EN_A_VS_AN)


39-39: Correct phrasing to remove redundancy.

Remove redundant words and improve parentheses usage:

-| `Verify SSL certificate` | Whether to use verify your Pi-hole's certificate, ignored in Pi-hole API version 5. | {% icon "openmoji:check-mark" %} |
+| `Verify SSL certificate` | Whether to verify your Pi-hole's certificate (ignored in API version 5). | {% icon "openmoji:check-mark" %} |

43-43: Simplify and streamline instructions.

Break the long sentence into clear steps:

-Your App Password can be found by logging into your Pi-Hole and going to _Settings > Web Interface/API_ and then switching from `Basic` to `Expert` mode then clicking **Configure app password** button.
+To find your App Password:
+1. Log into Pi-hole and go to _Settings > Web Interface/API_.
+2. Switch from `Basic` to `Expert` mode.
+3. Click the **Configure app password** button.

45-45: Split into two sentences and refine phrasing.

Eliminate the comma splice and clarify:

-Versions of Pi-hole before version 6 (released in Feb 2025) use an API Key if the Pi-hole was password protected, this can be found in _Settings > API Tab_ and clicking **Show API token**
+For Pi-hole versions prior to version 6 (released Feb 2025), a password-protected Pi-hole uses an API Key. You can find this under _Settings > API Tab_ by clicking **Show API token**.
📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 9253459 and 01ae2ac.

📒 Files selected for processing (1)
  • source/_integrations/pi_hole.markdown (2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/pi_hole.markdown

[uncategorized] ~36-~36: Possible missing comma found.
Context: ...ath to the admin page. In the version 6 API this will be ignored. | /admin | | `API...

(AI_HYDRA_LEO_MISSING_COMMA)


[misspelling] ~38-~38: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...certificate| Whether your Pi-hole has an Certificate, typically true forhttps`...

(EN_A_VS_AN)

🔇 Additional comments (2)
source/_integrations/pi_hole.markdown (2)

33-34: Port description is clear and correct.

The added note on default HTTP/HTTPS ports improves usability.


57-58: Confirm handling of '0' duration value.

The doc states '0' disables indefinitely. Please verify that the backend accepts a string '0' and distinguishes it correctly from a zero-duration timedelta(0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-parent This PR has a parent PR in a other repo next This PR goes into the next branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant