Skip to content

Conversation

emontnemery
Copy link
Contributor

@emontnemery emontnemery commented Aug 20, 2025

Proposed change

Add blog post on service web API changes

Type of change

  • Document existing features within Home Assistant
  • Document new or changing features for which there is an existing pull request elsewhere
  • Spelling or grammatical corrections, or rewording for improved clarity
  • Changes to the backend of this documentation
  • Remove stale or deprecated documentation

Checklist

  • I have read and followed the documentation guidelines.
  • I have verified that my changes render correctly in the documentation.

Additional information

Summary by CodeRabbit

  • Documentation
    • Added a blog post explaining that action translations are no longer returned by WS get_services and REST /api/services.
    • Notes that legacy untranslated action names/descriptions still appear in responses.
    • Describes how to fetch complete translations via the frontend/get_translations WebSocket command.
    • References the related core PR for additional context.

Copy link
Contributor

coderabbitai bot commented Aug 20, 2025

📝 Walkthrough

Walkthrough

Adds a blog post documenting removal of action translations from WS get_services and REST /api/services responses; legacy untranslated action fields remain. Directs clients to fetch translations via frontend/get_translations and references core PR 147120. No exported/public API declarations changed.

Changes

Cohort / File(s) Summary
Docs — Blog
blog/2025-08-20-service-web-api-changes.md
New post describing API response adjustments: action translations from strings.json no longer included in WS get_services and REST /api/services; untranslated actions from services.yaml remain; use frontend/get_translations (WS) to retrieve full translations; cites core PR 147120.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Client
    participant WS as WebSocket API
    participant REST as REST API
    participant Frontend as frontend/get_translations

    Client->>WS: request get_services
    WS-->>Client: services list (no action translations)
    Note right of Client: Client may show legacy untranslated names

    Client->>REST: GET /api/services
    REST-->>Client: services list (no action translations)

    alt client needs translations
        Client->>Frontend: request frontend/get_translations
        Frontend-->>Client: full translations (actions & locales)
    end
Loading

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.


📜 Recent 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.

📥 Commits

Reviewing files that changed from the base of the PR and between 08eb002 and 67718cd.

📒 Files selected for processing (1)
  • blog/2025-08-20-service-web-api-changes.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • blog/2025-08-20-service-web-api-changes.md
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch blog_service_web_api_changes

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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: 1

🧹 Nitpick comments (5)
blog/2025-08-20-service-web-api-changes.md (5)

4-4: Prefer “WebSocket” over “WS” in the title; tighten wording.

Avoid unexplained abbreviations per Microsoft Style Guide and keep the title concise.

Apply this diff:

-title: "Service translations have been removed from WS get_services and REST /api/services"
+title: "Service translations removed from WebSocket get_services and REST /api/services"

10-10: Clarify that inclusion is in the responses and align parallel structure.

Be explicit that they remain in both responses, and mirror WebSocket/REST phrasing.

Apply this diff:

-Legacy untranslated action descriptions and names specified in `services.yaml` are still included both in the WS command and REST endpoint.
+Legacy, untranslated action names and descriptions from `services.yaml` remain in both the WebSocket and REST responses.

14-14: Use imperative tone and expand “WS” to “WebSocket”.

Aligns with Microsoft Style Guide and keeps instructions direct.

Apply this diff:

-Complete action translations can instead be fetched with the WS command `frontend/get_translations`.
+Fetch complete action translations with the WebSocket command `frontend/get_translations`.

16-16: Tighten sentence and resolve grammar flag.

Shorten and remove “which”. The link context makes “core” clear.

Apply this diff:

-For more details, refer to the core [PR 147120](https://github.com/home-assistant/core/pull/147120) which implemented the change.
+For details, see [core PR 147120](https://github.com/home-assistant/core/pull/147120).

7-16: Add effective version to help integrators plan.

Readers need to know from which Home Assistant release this change applies. Consider adding a short sentence indicating the first release containing this change.

Proposed addition (after the first paragraph):

  • This change takes effect in Home Assistant .

Reply with the target version and I can update the wording accordingly.

📜 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.

📥 Commits

Reviewing files that changed from the base of the PR and between b9af387 and 99a13ba.

📒 Files selected for processing (1)
  • blog/2025-08-20-service-web-api-changes.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
*/**(html|markdown|md)

⚙️ CodeRabbit Configuration File

*/**(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'

*/**(html|markdown|md): - Use bold to mark UI strings.

  • If "" are used to mark UI strings, replace them by bold.

  • Be brief in your replies and don't add fluff like "thank you for..." and "Please let me know if"

  • Use sentence-style capitalization also in headings.

do not comment on HTML used for icons

Avoid flagging inline HTML for embedding videos in future reviews for this repository.

Files:

  • blog/2025-08-20-service-web-api-changes.md
🪛 LanguageTool
blog/2025-08-20-service-web-api-changes.md

[grammar] ~16-~16: There might be a mistake here.
Context: ...ll/147120) which implemented the change.

(QB_NEW_EN)

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

♻️ Duplicate comments (2)
blog/2025-08-20-service-web-api-changes.md (2)

9-9: Expand “WS”, fix parallelism, and use consistent wording (“defined”).

Follow earlier feedback to expand “WS” and align phrasing with Line 7.

-Legacy untranslated action descriptions and names specified in `services.yaml` are still included both in the WS command and REST endpoint.
+Legacy untranslated action descriptions and names defined in `services.yaml` are still included in both the WebSocket command and the REST endpoint.

11-11: Expand “WS” and switch to directive style per Microsoft Style Guide.

Use imperative mood and explicit terminology.

-Complete action translations can instead be fetched with the WS command `frontend/get_translations`.
+Fetch complete action translations using the WebSocket `frontend/get_translations` command.
🧹 Nitpick comments (3)
blog/2025-08-20-service-web-api-changes.md (3)

4-4: Expand “WS” to “WebSocket” and use active voice in title.

Use explicit terminology in titles and prefer active voice for brevity and clarity.

-title: "Service translations have been removed from WS get_services and REST /api/services"
+title: "Service translations removed from WebSocket get_services and REST /api/services"

7-7: Minor clarity and tense tweak for readability.

Keep present tense for ongoing truths and place the primary rationale first.

-Action translations defined in `strings.json` are no longer included in responses from the WebSocket `get_services` command and the REST `/api/services` endpoint because they were incomplete and the Home Assistant frontend did not use them.
+Action translations defined in `strings.json` are no longer included in responses from the WebSocket `get_services` command and the REST `/api/services` endpoint because the Home Assistant frontend does not use them and the translations were incomplete.

13-13: Use “See … for details.” and remove nonessential clause.

Improves style and also addresses the grammar hint from LanguageTool.

-For more details, refer to the core [PR 147120](https://github.com/home-assistant/core/pull/147120) which implemented the change.
+See core [PR 147120](https://github.com/home-assistant/core/pull/147120) for details.
📜 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.

📥 Commits

Reviewing files that changed from the base of the PR and between 99a13ba and 08eb002.

📒 Files selected for processing (1)
  • blog/2025-08-20-service-web-api-changes.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
*/**(html|markdown|md)

⚙️ CodeRabbit Configuration File

*/**(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'

*/**(html|markdown|md): - Use bold to mark UI strings.

  • If "" are used to mark UI strings, replace them by bold.

  • Be brief in your replies and don't add fluff like "thank you for..." and "Please let me know if"

  • Use sentence-style capitalization also in headings.

do not comment on HTML used for icons

Avoid flagging inline HTML for embedding videos in future reviews for this repository.

Files:

  • blog/2025-08-20-service-web-api-changes.md
🪛 LanguageTool
blog/2025-08-20-service-web-api-changes.md

[grammar] ~13-~13: There might be a mistake here.
Context: ...ll/147120) which implemented the change.

(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 (1)
blog/2025-08-20-service-web-api-changes.md (1)

2-3: No changes needed: authorURL is the standard key
All existing blog posts use authorURL: (no occurrences of author_url:), including this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants