Skip to content

Commit

Permalink
Fix matter commissioning wording and add prevent misuse alert (#22083)
Browse files Browse the repository at this point in the history
* Fix matter commissioning wording and add prevent misuse alert

* Update src/translations/en.json

Co-authored-by: Bram Kragten <[email protected]>

* Add small misuese prevent note for matter-commissioning dialog

---------

Co-authored-by: Paul Bottein <[email protected]>
Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent dd179e1 commit 5a5005c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,19 @@ class DialogMatterOpenCommissioningWindow extends LitElement {
: html`
<p>
${this.hass.localize(
"ui.panel.config.matter.open_commissioning_window.introduction"
"ui.panel.config.matter.open_commissioning_window.description",
{
startCommissioning: html`<b
>${this.hass.localize(
"ui.panel.config.matter.open_commissioning_window.start_commissioning"
)}</b
>`,
}
)}
</p>
<p class="note">
${this.hass.localize(
"ui.panel.config.matter.open_commissioning_window.prevent_misuse_description"
)}
</p>
<mwc-button slot="primaryAction" @click=${this._start}>
Expand Down Expand Up @@ -247,6 +259,11 @@ class DialogMatterOpenCommissioningWindow extends LitElement {
.code {
font-family: monospace;
}
.note {
color: var(--secondary-text-color);
font-size: 0.9em;
}
`,
];
}
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5131,7 +5131,8 @@
},
"open_commissioning_window": {
"title": "Share device",
"introduction": "Enable commissioning mode on the device to pair it to another Matter controller.",
"description": "To continue, select {startCommissioning}. Home Assistant will then put your device in commissioning mode, allowing it to pair with another Matter controller.",
"prevent_misuse_description": "Note: Do not press the physical setup button on the device as this will reset it.",
"start_commissioning": "Share device",
"in_progress": "We're communicating with the device. This may take some time.",
"failed": "The command failed. Additional information may be available in the logs.",
Expand Down

0 comments on commit 5a5005c

Please sign in to comment.