mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Do not render "No Area" in device table to reduce clutter (#7986)
This commit is contained in:
parent
371ad899f5
commit
ef3bc3efe1
@ -189,9 +189,7 @@ export class HaConfigDeviceDashboard extends LitElement {
|
|||||||
),
|
),
|
||||||
model: device.model || "<unknown>",
|
model: device.model || "<unknown>",
|
||||||
manufacturer: device.manufacturer || "<unknown>",
|
manufacturer: device.manufacturer || "<unknown>",
|
||||||
area: device.area_id
|
area: device.area_id ? areaLookup[device.area_id].name : undefined,
|
||||||
? areaLookup[device.area_id].name
|
|
||||||
: this.hass.localize("ui.panel.config.devices.data_table.no_area"),
|
|
||||||
integration: device.config_entries.length
|
integration: device.config_entries.length
|
||||||
? device.config_entries
|
? device.config_entries
|
||||||
.filter((entId) => entId in entryLookup)
|
.filter((entId) => entId in entryLookup)
|
||||||
|
@ -1827,8 +1827,7 @@
|
|||||||
"area": "Area",
|
"area": "Area",
|
||||||
"integration": "Integration",
|
"integration": "Integration",
|
||||||
"battery": "Battery",
|
"battery": "Battery",
|
||||||
"no_devices": "No devices",
|
"no_devices": "No devices"
|
||||||
"no_area": "No area"
|
|
||||||
},
|
},
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"confirm_delete": "Are you sure you want to delete this device?",
|
"confirm_delete": "Are you sure you want to delete this device?",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user