From ef3bc3efe1839a7ea7ed97b78dbe2a5a54190fec Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 29 Dec 2020 22:46:47 +0100 Subject: [PATCH] Do not render "No Area" in device table to reduce clutter (#7986) --- src/panels/config/devices/ha-config-devices-dashboard.ts | 4 +--- src/translations/en.json | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/panels/config/devices/ha-config-devices-dashboard.ts b/src/panels/config/devices/ha-config-devices-dashboard.ts index 8737a28b58..3eba91db7b 100644 --- a/src/panels/config/devices/ha-config-devices-dashboard.ts +++ b/src/panels/config/devices/ha-config-devices-dashboard.ts @@ -189,9 +189,7 @@ export class HaConfigDeviceDashboard extends LitElement { ), model: device.model || "", manufacturer: device.manufacturer || "", - area: device.area_id - ? areaLookup[device.area_id].name - : this.hass.localize("ui.panel.config.devices.data_table.no_area"), + area: device.area_id ? areaLookup[device.area_id].name : undefined, integration: device.config_entries.length ? device.config_entries .filter((entId) => entId in entryLookup) diff --git a/src/translations/en.json b/src/translations/en.json index 24be0db009..6a800a8a8e 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1827,8 +1827,7 @@ "area": "Area", "integration": "Integration", "battery": "Battery", - "no_devices": "No devices", - "no_area": "No area" + "no_devices": "No devices" }, "delete": "Delete", "confirm_delete": "Are you sure you want to delete this device?",