Replace button to manually add a Thread border router with more info button (#19903)

Replace button to manually add a border router with more info button
This commit is contained in:
Marcel van der Veldt 2024-02-28 12:33:21 +01:00 committed by GitHub
parent 3b89b72568
commit 5b3074d939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -54,6 +54,7 @@ import { haStyle } from "../../../../../resources/styles";
import { HomeAssistant } from "../../../../../types";
import { brandsUrl } from "../../../../../util/brands-url";
import { fileDownload } from "../../../../../util/file_download";
import { documentationUrl } from "../../../../../util/documentation-url";
interface ThreadNetwork {
name: string;
@ -123,11 +124,16 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
)}
</h3>
<ha-svg-icon .path=${mdiDevices}></ha-svg-icon>
<mwc-button @click=${this._addOTBR}
>${this.hass.localize(
"ui.panel.config.thread.add_open_thread_border_router"
)}</mwc-button
<a
href=${documentationUrl(this.hass, `/integrations/thread`)}
target="_blank"
>
<mwc-button
>${this.hass.localize(
"ui.panel.config.thread.more_info"
)}</mwc-button
>
</a>
</div>
</ha-card>`}
${networks.networks.length

View File

@ -4127,6 +4127,7 @@
"other_networks": "Other networks",
"my_network": "Preferred network",
"no_preferred_network": "You don't have a preferred network yet.",
"more_info": "More Info",
"add_open_thread_border_router": "Add an OpenThread border router",
"reset_border_router": "Reset border router",
"add_to_my_network": "Add to preferred network",