Skip to content

Lining up strings with Core Plugwise, update translations#1048

Merged
bouwew merged 23 commits intomainfrom
update-strings
Mar 23, 2026
Merged

Lining up strings with Core Plugwise, update translations#1048
bouwew merged 23 commits intomainfrom
update-strings

Conversation

@bouwew
Copy link
Contributor

@bouwew bouwew commented Mar 21, 2026

Keep some better strings, add updates from #997

Summary by CodeRabbit

  • Documentation

    • Added help text for device setup and reconfigure fields (host, port, Smile-ID, Smile username).
  • Style

    • Shortened and standardized prompts and labels (IP address, Port, Smile-ID, Smile username).
    • Renamed maximum boiler temperature label and normalized option/service capitalization and wording (e.g., Adam/Smile/Stretch, no options/notification).
    • Updated user-step description to clarify device data entry.
  • Bug Fixes

    • Replaced several specific error messages with shorter, more generic, user-friendly wording.

Keep some better string, add updates from #997
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 21, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Updated Plugwise integration localization across three JSON files: shortened and rephrased many user-facing strings, removed several obsolete error keys, added setup field help texts (data_description) for reconfigure and user flows, and adjusted entity/option/service labels. No functional code changes.

Changes

Cohort / File(s) Summary
Core strings
custom_components/plugwise/strings.json
Shortened/rephrased abort, error, exception, option and service texts; removed multiple obsolete error keys; updated config step labels (IP-addressIP address, Port numberPort), renamed credential labels (IDSmile-ID, UsernameSmile username), added data_description entries for reconfigure/user steps, and adjusted user/reconfigure step descriptions and boiler temperature labels.
English translations
custom_components/plugwise/translations/en.json
Mirrors strings.json changes for English: reworded abort/error messages, removed specific error keys, updated setup field labels and added data_description help texts, adjusted entity/option/service UI wording and casing.
Dutch translations
custom_components/plugwise/translations/nl.json
Updated Dutch UI strings to reflect wording changes: normalized device/error phrasing, added setup data_description entries with host/port/defaults and Smile-ID labels, and adjusted numerous entity/option labels for consistency and spelling.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • CoMPaTech
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: updating and aligning string resources with Core Plugwise across multiple translation files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-strings

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai bot requested a review from CoMPaTech March 21, 2026 08:32
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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
custom_components/plugwise/strings.json (1)

1-357: ⚠️ Potential issue | 🟡 Minor

Apply and commit Prettier’s JSON sorting/formatting output.

CI indicates this file is still being rewritten by the Prettier hook, so formatting/sorting changes were not fully committed.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@custom_components/plugwise/strings.json` around lines 1 - 357, Prettier's
JSON formatting/sorting wasn't applied to the strings JSON (keys like "config",
"entity", "exceptions", "options", "services"); run your project's Prettier hook
or execute prettier --write on the JSON file to remove trailing commas (e.g.,
after the "port" description), apply the canonical key ordering/sorting, and
commit the updated strings.json so CI no longer rewrites it.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@custom_components/plugwise/strings.json`:
- Around line 25-26: The JSON has a trailing comma after the "port" entry in
strings.json which makes the file invalid; remove the comma following the "port"
value so the object closes correctly (i.e., ensure the "port" key/value pair
ends without a comma before the closing brace), then validate the file to
confirm well-formed JSON.

---

Outside diff comments:
In `@custom_components/plugwise/strings.json`:
- Around line 1-357: Prettier's JSON formatting/sorting wasn't applied to the
strings JSON (keys like "config", "entity", "exceptions", "options",
"services"); run your project's Prettier hook or execute prettier --write on the
JSON file to remove trailing commas (e.g., after the "port" description), apply
the canonical key ordering/sorting, and commit the updated strings.json so CI no
longer rewrites it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a6082cc8-2700-4c5a-a3ef-525761f3045f

📥 Commits

Reviewing files that changed from the base of the PR and between ba0194b and 46a7519.

📒 Files selected for processing (1)
  • custom_components/plugwise/strings.json

@bouwew bouwew marked this pull request as ready for review March 21, 2026 09:42
@bouwew bouwew requested a review from a team as a code owner March 21, 2026 09:42
Copilot AI review requested due to automatic review settings March 21, 2026 09:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Plugwise integration’s strings.json to better align user-facing text (config flow labels/help text, error/abort messages, and a few entity/service labels) with the Home Assistant Core Plugwise phrasing and recent translation refinements mentioned in #997.

Changes:

  • Standardizes several config-flow abort/error strings (e.g., authentication and XML/response errors).
  • Adds help text (data_description) for config/reconfigure fields (host/port/username/password).
  • Updates/extends a few UI labels (new climate state attribute label, boiler temperature label, options and service wording/capitalization).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI commented Mar 21, 2026

@bouwew I've opened a new pull request, #1049, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Member

@CoMPaTech CoMPaTech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just on/for issue

@bouwew bouwew changed the title Lining up strings with Core Plugwise Lining up strings with Core Plugwise, update translations Mar 21, 2026
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: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@custom_components/plugwise/translations/nl.json`:
- Line 38: The Dutch translation for the JSON key "password" is missing the
device name "Stretch"; update the value for the "password" entry in
custom_components/plugwise/translations/nl.json (the "password" JSON key) to
include "Stretch" so it mirrors the English phrasing (e.g., mention "Adam, P1,
Smile-T of Stretch") ensuring users of the Stretch device are not confused.
- Line 13: The translation value for the key "response_error" contains a typo
("ontvange"); update the string to "ongeldige XML-data of foutindicatie
ontvangen" by correcting the word to "ontvangen" so the Dutch message reads
correctly for the "response_error" entry.
- Around line 36-37: The translation entry under the "data_description" ->
"host" key uses inconsistent hyphenation ("IP adres"); update that string to use
"IP-adres" to match the other occurrences — locate the "data_description" object
and the "host" property in the nl.json translation and replace "IP adres" with
"IP-adres" so spelling is consistent across the file.
- Line 177: Update the nl.json translation value for the "name" entry currently
set to "Elektriciteitsconsumptie - cumulatief piek" to match the project's
formatting used elsewhere (no " - " dash and consistent word order). Replace the
value with a dash-free, consistent string such as "Elektriciteitsconsumptie piek
cumulatief" so it aligns with entries like "Elektriciteitsconsumptie laagtarief
cumulatief" and the English equivalent.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ac8a29ed-ff7e-4230-99f5-1f703eb2cfd2

📥 Commits

Reviewing files that changed from the base of the PR and between 4703071 and 1a89011.

📒 Files selected for processing (2)
  • custom_components/plugwise/translations/en.json
  • custom_components/plugwise/translations/nl.json

bouwew and others added 2 commits March 21, 2026 14:19
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
bouwew and others added 2 commits March 21, 2026 14:20
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

bouwew and others added 7 commits March 21, 2026 15:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

@bouwew bouwew merged commit 372c848 into main Mar 23, 2026
13 checks passed
@bouwew bouwew deleted the update-strings branch March 23, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants