mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
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:
parent
dd179e1f4e
commit
5a5005c09c
@ -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;
|
||||
}
|
||||
`,
|
||||
];
|
||||
}
|
||||
|
@ -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.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user