mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57: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;
|
||||
|
||||
return html`
|
||||
<h2>Success!</h2>
|
||||
<h2>${localize("ui.panel.config.integrations.config_flow.success")}!</h2>
|
||||
<div class="content">
|
||||
${this.flowConfig.renderCreateEntryDescription(this.hass, this.step)}
|
||||
${this.step.result?.state === "not_loaded"
|
||||
@ -41,7 +41,11 @@ class StepFlowCreateEntry extends LitElement {
|
||||
${this.devices.length === 0
|
||||
? ""
|
||||
: html`
|
||||
<p>We found the following devices:</p>
|
||||
<p>
|
||||
${localize(
|
||||
"ui.panel.config.integrations.config_flow.found_following_devices"
|
||||
)}:
|
||||
</p>
|
||||
<div class="devices">
|
||||
${this.devices.map(
|
||||
(device) =>
|
||||
@ -49,7 +53,12 @@ class StepFlowCreateEntry extends LitElement {
|
||||
<div class="device">
|
||||
<div>
|
||||
<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>
|
||||
<ha-area-picker
|
||||
.hass=${this.hass}
|
||||
|
@ -2711,12 +2711,14 @@
|
||||
"open_configuration_url": "Visit device"
|
||||
},
|
||||
"config_flow": {
|
||||
"success": "Success",
|
||||
"aborted": "Aborted",
|
||||
"close": "Close",
|
||||
"dismiss": "Dismiss dialog",
|
||||
"finish": "Finish",
|
||||
"submit": "Submit",
|
||||
"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.",
|
||||
"not_all_required_fields": "Not all required fields are filled in.",
|
||||
"error_saving_area": "Error saving area: {error}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user