From d13aa05c2a6ae8ee910863040deac098d427aceb Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 15 Dec 2020 16:25:46 +0100 Subject: [PATCH] Do not render "No Area" in device table to reduce clutter --- 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 8737a28b582e..3eba91db7bc8 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 5ca4cc9b6936..f82601a7008e 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?",