Fix matter commissioning wording and add prevent misuse alert (#22083)

* Fix matter commissioning wording and add prevent misuse alert

* Update src/translations/en.json

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* Add small misuese prevent note for matter-commissioning dialog

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Wendelin 2024-09-26 12:15:03 +02:00 committed by GitHub
parent dd179e1f4e
commit 5a5005c09c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 2 deletions

View File

@ -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}>
@ -247,6 +259,11 @@ class DialogMatterOpenCommissioningWindow extends LitElement {
.code {
font-family: monospace;
}
.note {
color: var(--secondary-text-color);
font-size: 0.9em;
}
`,
];
}

View File

@ -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.",