mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 23:36:36 +00:00
Handle device without name (#11138)
This commit is contained in:
parent
f021480bc5
commit
4e0cebaf32
@ -8,6 +8,7 @@ import { fireEvent } from "../../common/dom/fire_event";
|
|||||||
import "../../components/ha-area-picker";
|
import "../../components/ha-area-picker";
|
||||||
import { DataEntryFlowStepCreateEntry } from "../../data/data_entry_flow";
|
import { DataEntryFlowStepCreateEntry } from "../../data/data_entry_flow";
|
||||||
import {
|
import {
|
||||||
|
computeDeviceName,
|
||||||
DeviceRegistryEntry,
|
DeviceRegistryEntry,
|
||||||
updateDeviceRegistryEntry,
|
updateDeviceRegistryEntry,
|
||||||
} from "../../data/device_registry";
|
} from "../../data/device_registry";
|
||||||
@ -50,7 +51,7 @@ class StepFlowCreateEntry extends LitElement {
|
|||||||
html`
|
html`
|
||||||
<div class="device">
|
<div class="device">
|
||||||
<div>
|
<div>
|
||||||
<b>${device.name}</b><br />
|
<b>${computeDeviceName(device, this.hass)}</b><br />
|
||||||
${device.model} (${device.manufacturer})
|
${device.model} (${device.manufacturer})
|
||||||
</div>
|
</div>
|
||||||
<ha-area-picker
|
<ha-area-picker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user