Add documentation link to ZHA pairing mode page (#19518)

Add pairing instructions docs link to ZHA Add Devices page

While we ask people to refer to the instructions of their device, they may need some further support to locate this. We can direct them to the ZHA documentation.
This commit is contained in:
Cody C 2024-01-31 01:39:57 +13:00 committed by GitHub
parent 0944b1e9d3
commit 767b2b6b9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 3 deletions

View File

@ -17,6 +17,7 @@ import {
import "../../../../../layouts/hass-tabs-subpage";
import { haStyle } from "../../../../../resources/styles";
import { HomeAssistant, Route } from "../../../../../types";
import { documentationUrl } from "../../../../../util/documentation-url";
import { zhaTabs } from "./zha-config-dashboard";
import "./zha-device-pairing-status-card";
import "../../../../../components/ha-textarea";
@ -118,8 +119,24 @@ class ZHAAddDevicesPage extends LitElement {
? html`
<div class="discovery-text">
<h4>
${this.hass!.localize(
"ui.panel.config.zha.add_device_page.pairing_mode"
${this.hass.localize(
"ui.panel.config.zha.add_device_page.pairing_mode",
{
documentation_link: html`
<a
target="_blank"
rel="noopener noreferrer"
href=${documentationUrl(
this.hass,
"/integrations/zha#adding-devices"
)}
>
${this.hass.localize(
"ui.panel.config.zha.add_device_page.pairing_mode_link"
)}
</a>
`,
}
)}
</h4>
<h4>

View File

@ -4157,7 +4157,8 @@
},
"add_device_page": {
"spinner": "Searching for Zigbee devices…",
"pairing_mode": "Make sure your devices are in pairing mode. Check the instructions of your device on how to do this.",
"pairing_mode": "Make sure your devices are in pairing mode. Check the instructions of your device or {documentation_link} on how to do this.",
"pairing_mode_link": "the documentation",
"discovered_text": "Devices will show up here once discovered.",
"no_devices_found": "No devices were found, make sure they are in pairing mode and keep them awake while Home Assistant is searching.",
"search_again": "Search again"