mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-28 07:17:21 +00:00
Prevent empty brackets if no manufacturer during config entry creation (#12288)
This commit is contained in:
parent
714f2447b7
commit
e751abd775
@ -28,7 +28,7 @@ class StepFlowCreateEntry extends LitElement {
|
|||||||
const localize = this.hass.localize;
|
const localize = this.hass.localize;
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<h2>Success!</h2>
|
<h2>${localize("ui.panel.config.integrations.config_flow.success")}!</h2>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
${this.flowConfig.renderCreateEntryDescription(this.hass, this.step)}
|
${this.flowConfig.renderCreateEntryDescription(this.hass, this.step)}
|
||||||
${this.step.result?.state === "not_loaded"
|
${this.step.result?.state === "not_loaded"
|
||||||
@ -41,7 +41,11 @@ class StepFlowCreateEntry extends LitElement {
|
|||||||
${this.devices.length === 0
|
${this.devices.length === 0
|
||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
<p>We found the following devices:</p>
|
<p>
|
||||||
|
${localize(
|
||||||
|
"ui.panel.config.integrations.config_flow.found_following_devices"
|
||||||
|
)}:
|
||||||
|
</p>
|
||||||
<div class="devices">
|
<div class="devices">
|
||||||
${this.devices.map(
|
${this.devices.map(
|
||||||
(device) =>
|
(device) =>
|
||||||
@ -49,7 +53,12 @@ class StepFlowCreateEntry extends LitElement {
|
|||||||
<div class="device">
|
<div class="device">
|
||||||
<div>
|
<div>
|
||||||
<b>${computeDeviceName(device, this.hass)}</b><br />
|
<b>${computeDeviceName(device, this.hass)}</b><br />
|
||||||
${device.model} (${device.manufacturer})
|
${!device.model && !device.manufacturer
|
||||||
|
? html` `
|
||||||
|
: html`${device.model}
|
||||||
|
${device.manufacturer
|
||||||
|
? html`(${device.manufacturer})`
|
||||||
|
: ""}`}
|
||||||
</div>
|
</div>
|
||||||
<ha-area-picker
|
<ha-area-picker
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
|
@ -2711,12 +2711,14 @@
|
|||||||
"open_configuration_url": "Visit device"
|
"open_configuration_url": "Visit device"
|
||||||
},
|
},
|
||||||
"config_flow": {
|
"config_flow": {
|
||||||
|
"success": "Success",
|
||||||
"aborted": "Aborted",
|
"aborted": "Aborted",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"dismiss": "Dismiss dialog",
|
"dismiss": "Dismiss dialog",
|
||||||
"finish": "Finish",
|
"finish": "Finish",
|
||||||
"submit": "Submit",
|
"submit": "Submit",
|
||||||
"next": "Next",
|
"next": "Next",
|
||||||
|
"found_following_devices": "We found the following devices",
|
||||||
"no_config_flow": "This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.",
|
"no_config_flow": "This integration does not support configuration via the UI. If you followed this link from the Home Assistant website, make sure you run the latest version of Home Assistant.",
|
||||||
"not_all_required_fields": "Not all required fields are filled in.",
|
"not_all_required_fields": "Not all required fields are filled in.",
|
||||||
"error_saving_area": "Error saving area: {error}",
|
"error_saving_area": "Error saving area: {error}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user