mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
Update language when ZHA or Zwave arent installed (re: supported brands) (#13191)
This commit is contained in:
parent
b582a4d014
commit
9309a4c7bc
@ -309,7 +309,21 @@ class StepFlowPickHandler extends LitElement {
|
|||||||
// If the component isn't loaded, ask them to load the integration first
|
// If the component isn't loaded, ask them to load the integration first
|
||||||
showConfirmationDialog(this, {
|
showConfirmationDialog(this, {
|
||||||
text: this.hass.localize(
|
text: this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_flow.missing_zwave_js"
|
"ui.panel.config.integrations.config_flow.missing_zwave_zigbee",
|
||||||
|
{
|
||||||
|
integration: "Z-Wave",
|
||||||
|
supported_hardware_link: html`<a
|
||||||
|
href=${documentationUrl(this.hass, "/docs/z-wave/controllers")}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.config_flow.supported_hardware"
|
||||||
|
)}</a
|
||||||
|
>`,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
confirmText: this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.config_flow.proceed"
|
||||||
),
|
),
|
||||||
confirm: () => {
|
confirm: () => {
|
||||||
fireEvent(this, "handler-picked", {
|
fireEvent(this, "handler-picked", {
|
||||||
@ -328,7 +342,24 @@ class StepFlowPickHandler extends LitElement {
|
|||||||
if (!isComponentLoaded(this.hass, "zha")) {
|
if (!isComponentLoaded(this.hass, "zha")) {
|
||||||
showConfirmationDialog(this, {
|
showConfirmationDialog(this, {
|
||||||
text: this.hass.localize(
|
text: this.hass.localize(
|
||||||
"ui.panel.config.integrations.config_flow.missing_zha"
|
"ui.panel.config.integrations.config_flow.missing_zwave_zigbee",
|
||||||
|
{
|
||||||
|
integration: "Zigbee",
|
||||||
|
supported_hardware_link: html`<a
|
||||||
|
href=${documentationUrl(
|
||||||
|
this.hass,
|
||||||
|
"/integrations/zha/#known-working-zigbee-radio-modules"
|
||||||
|
)}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.config_flow.supported_hardware"
|
||||||
|
)}</a
|
||||||
|
>`,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
confirmText: this.hass.localize(
|
||||||
|
"ui.panel.config.integrations.config_flow.proceed"
|
||||||
),
|
),
|
||||||
confirm: () => {
|
confirm: () => {
|
||||||
fireEvent(this, "handler-picked", {
|
fireEvent(this, "handler-picked", {
|
||||||
|
@ -2852,8 +2852,9 @@
|
|||||||
"not_loaded": "The integration could not be loaded, try to restart Home Assistant.",
|
"not_loaded": "The integration could not be loaded, try to restart Home Assistant.",
|
||||||
"missing_credentials": "Setting up {integration} requires configuring application credentials. Do you want to do that now?",
|
"missing_credentials": "Setting up {integration} requires configuring application credentials. Do you want to do that now?",
|
||||||
"supported_brand_flow": "Support for {supported_brand} devices is provided by {flow_domain_name}. Do you want to continue?",
|
"supported_brand_flow": "Support for {supported_brand} devices is provided by {flow_domain_name}. Do you want to continue?",
|
||||||
"missing_zwave_js": "To add a Z-Wave device, you first need to set up the Z-Wave integration. Do you want to do that now?",
|
"missing_zwave_zigbee": "To add a {integration} device, you first need {supported_hardware_link} and the {integration} integration set up. If you already have the hardware then you can proceed with the setup of {integration}.",
|
||||||
"missing_zha": "To add a Zigbee device, you first need to set up the Zigbee Home Automation integration. Do you want to do that now?"
|
"supported_hardware": "supported hardware",
|
||||||
|
"proceed": "Proceed"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"users": {
|
"users": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user