mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Add fallback for devices without name (#23513)
This commit is contained in:
@@ -222,7 +222,9 @@ export class HaDevicePicker extends LitElement {
|
||||
|
||||
return {
|
||||
id: device.id,
|
||||
name: name,
|
||||
name:
|
||||
name ||
|
||||
this.hass.localize("ui.components.device-picker.unnamed_device"),
|
||||
area:
|
||||
device.area_id && areas[device.area_id]
|
||||
? areas[device.area_id].name
|
||||
|
||||
Reference in New Issue
Block a user