Repository navigation
feat: v3.14.15-beta.11 - Translated card, actions and notifications, Chinese loads, Arris TG1682G - #242
Merged
Conversation
Verified by @nbeach on 3.14.15-beta.10 hardware (SW AT01.01.010.042324_S3.04.735, Spectrum, 32 DS + 4 US locked, all signals nominal, restart confirmed). Originally requested by @dtrazzi in #108. Refreshes modem.verified.json from their diagnostics; flips modem.yaml status awaiting_verification -> confirmed. Related to #238 Related to #108 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 14 now lists last_error, which verify_diagnostics has stripped since it was added, and separates the HA wrapper from keys stripped inside data. MODEM_DIRECTORY_SPEC's duplicate strip list and promotion procedure (which still called the process manual) now point to the workflow's Confirmation Phase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Login.js and CBN firmware JS gates skip entries whose captures hold no firmware JS. dc63eaf kept these skips on purpose as the visible record of missing evidence; the reason text now says so, so a reader of -rs output does not mistake them for filtering that belongs at collection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(i18n): clarify pt-BR channel identification help
Translated entity names would give new installs language-specific entity IDs in 8 of our 11 non-English languages (HA NATIVE_ENTITY_IDS), breaking the documented sensor.cable_modem_* IDs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(i18n): localize setup flow selectors
Contributor PRs are moved from main to the open feature/* beta branch, and Tests and hassfest only ran pull_request events for main, so a moved PR merged with no test or hassfest run. Both now run on PRs into feature/* too, including the edited event a base change sends. The base-ref steps already read github.base_ref and fetch full history. CodeQL stays main-only on PRs: it scans the beta branch on every push, and release.py blocks a release with an open alert. check-translations-sync.py now fails when a translation's placeholders differ from English. Home Assistant drops such a translation and shows English, logging only. It happened once: 803d15b left en.json on {last_detection} while every language had {parser_selected_at}, until 7407d11 fixed it a day later, after v3.13.0-beta.1 to beta.3 were cut. The check parses placeholders with string.Formatter, as Home Assistant's _validate_placeholders does, covers every translated section, and replaces the exceptions-only regex test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
check-translations-sync.py compares in-scope English with scripts/dev/translations-source.json, the English the languages were last translated from. An added, changed or removed string fails with its old and new text until every language is updated and the snapshot is refreshed with --refresh, which writes only when every other check passes. Translations went stale this way in January 2026 (7fead94, 86a508e, 803d15b, 7407d11), before the checker existed, and no version of it until this one compared translations with English edits. The guide's developer steps gain the refresh and the rule that a changed string is edited, not retranslated, so contributors' wording survives. ARCHITECTURE_DECISIONS records that language files are kept in the repository. The seeded snapshot holds 124 strings, none newer than its translations by git history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Home Assistant loads translations/<language>.json with its own language code, which for Simplified Chinese is zh-Hans; nothing maps zh-CN to it. zh-CN.json shipped with v3.9.0 (23976e9) and never loaded: Home Assistant logs the missing file at DEBUG and falls back to English. A probe through Home Assistant's translation loader returned the English string for zh-Hans before the rename and the Chinese one after it. A test now checks every translation file is named for a Home Assistant language. The checker's accent floor and the guide follow the new name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Project config changed" repair issue and its fix step are translated in all 11 languages, using each file's existing terms for custom config and its submit button. issues joins the checker's translated scope, and the snapshot gains its four English strings. Two tests guard the code side, where #239's labels hid: a setup dropdown needs a translation_key with strings, unless it is filled from catalog data, and no option label is an English literal; and code passes exactly the placeholders its strings use, the shape 7407d11 fixed. The checker also rejects a key English no longer has. TRANSLATION_GUIDE gains a map of how translation fits together, the runtime rules Home Assistant applies, the scope and its entity-ID reason, complete steps for adding a language, local hassfest, and pt-BR glossary rows for the option names from #239 and #240. CONTRIBUTING points to those steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The no-match page lists what answered as a table whose header row is in strings.json, and the code emits only data cells, escaping any "|" so device text cannot split a cell. Each language's page now names Auto-detect as its dropdown does; all 11 had kept the English word. The variant dropdown's login types come from a new selector.auth_strategy section, looked up with async_get_translations in the server's language, since a flow never learns the viewer's. Core's English is the fallback, and HNAP, JSON-RPC and URL Token keep Core's names. Tests hold the English to Core's labels and fail when a new login type has neither a translation nor a place on that list. CONFIG_FLOW_SPEC § Step 2 now says hardware version shows only to tell apart two otherwise identical labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 40 service strings, each action's name, description and fields, are translated in all 11 languages, and services joins the checker's translated scope. The dashboard-card description quotes Home Assistant's own button and menu labels in each language, taken from the Home Assistant frontend's translations, and keeps the generated card titles in English as the card shows them. Review fixes in the same files: nl uses "de modem" throughout, with matching pronouns; one options error in nl, it, pt-BR, pl, ru and uk now uses the same health-check term as its Configure label. TRANSLATION_GUIDE lists services as translated and asks for Home Assistant's exact labels where a string names its UI; checker tests use entity, which stays English, as their untranslated example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every notification's title and message move from Python to strings.json common (<key>_title, <key>_message) and are created by notifications.async_notify, which looks them up with async_get_translations in the server's language: Home Assistant stores a notification as created and never learns the viewer's language. The English output is unchanged. All 22 strings are translated in 11 languages, quoting Home Assistant's own labels for the places the notifications point to, and common joins the checker's scope. The placeholder test now checks every notification call, and the two test modules that drive notifications through a mock hass opt into a fixture serving the English text. channel_bond_notifier.py loses its two formatters. HA_ADAPTER_SPEC § Notifications says where the text lives, and TRANSLATION_GUIDE gains § Translating Persistent Notifications. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card's 12 form labels move to strings.json selector.card_field in all 12 languages. computeLabel reads them through Home Assistant's localize, which the card fills with hass.loadBackendTranslation, so they follow each viewer's language; the card's English labels remain the fallback, and a test holds them equal to strings.json. The card's graph titles and row names stay English: they name the same sensors in the same technical vocabulary as the entity names. Home Assistant gives the card-picker description and the editor's setup errors no translation lookup. TRANSLATION_GUIDE and DASHBOARD_CARD_SPEC record both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verified by @sjbaron42 on v3.14.15-beta.10 hardware (HW V1.0, SW 8600-21.3.3, 20 days uptime, 29 DS + 4 US locked). Their diagnostics also show the session refused path recovering in the same poll four times (GetMultipleHNAPsResult: UN-AUTH). Refreshes modem.verified.json from their diagnostics, replacing the 8600-19.3.15 capture from #40; status stays confirmed. Their plant has no OFDMA upstream, so the file no longer carries one. Adds them to attribution and points sources.verification at #236. Related to #236 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card's titles, row names, graph legends, restart confirmation and YAML header move to strings.json common.card_* and show in all 12 languages. The card builds its layout in the viewer's language and reloads when it changes; Generate Dashboard Card uses the server's. Entity names and IDs are unchanged. Protocol names (Ping, TCP, HTTP), DS/US and channel types stay as they are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Puma 6 DOCSIS 3.0 gateway with the same status_cgi/vers_cgi pages as the TM1602A. No auth. 24 DS + 4 US from the issue's HAR capture. Adds the entry's citation words (and the README's LIWEST Kabelmedien) to the cspell dictionary. Related to #241 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The eleventh beta of the v3.14.15 line: the rest of the integration is translated, Chinese translations load, and the Arris TG1682G joins the catalog.
What is in it
zh-Hans.json, the code Home Assistant asks for, so it loads.fdf97303). Related to [Modem Request] Arris TG1682G #241.868b965e). Related to [Modem Request] ARRIS S34 #108 and [Verification] Arris S34 #238.9cc4a813,800d4b8b). The Marketplace page gains a line naming supported makers with a link to the catalog.Behaviour changes to know about
Verification
make validate-ciexited 0 onfdf97303and again on800d4b8b, run by Claude;release.pyran it before the bump.800d4b8b: five workflows green (Tests, CodeQL, hassfest, HACS, commit lint).🤖 Generated with Claude Code