mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +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 { DataEntryFlowStepCreateEntry } from "../../data/data_entry_flow";
|
||||
import {
|
||||
computeDeviceName,
|
||||
DeviceRegistryEntry,
|
||||
updateDeviceRegistryEntry,
|
||||
} from "../../data/device_registry";
|
||||
@ -50,7 +51,7 @@ class StepFlowCreateEntry extends LitElement {
|
||||
html`
|
||||
<div class="device">
|
||||
<div>
|
||||
<b>${device.name}</b><br />
|
||||
<b>${computeDeviceName(device, this.hass)}</b><br />
|
||||
${device.model} (${device.manufacturer})
|
||||
</div>
|
||||
<ha-area-picker
|
||||
|
Loading…
x
Reference in New Issue
Block a user