From 4e0cebaf32f042377021536289a73b354b921145 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 10 Jan 2022 07:14:12 -0800 Subject: [PATCH] Handle device without name (#11138) --- src/dialogs/config-flow/step-flow-create-entry.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialogs/config-flow/step-flow-create-entry.ts b/src/dialogs/config-flow/step-flow-create-entry.ts index 39be634cf0..f2f1c36a53 100644 --- a/src/dialogs/config-flow/step-flow-create-entry.ts +++ b/src/dialogs/config-flow/step-flow-create-entry.ts @@ -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`
- ${device.name}
+ ${computeDeviceName(device, this.hass)}
${device.model} (${device.manufacturer})