mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
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:
parent
0944b1e9d3
commit
767b2b6b9c
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user