diff --git a/src/panels/config/devices/ha-config-device-page.ts b/src/panels/config/devices/ha-config-device-page.ts
index 39372e9340d3..57c98568739f 100644
--- a/src/panels/config/devices/ha-config-device-page.ts
+++ b/src/panels/config/devices/ha-config-device-page.ts
@@ -35,6 +35,7 @@ import "../../../components/ha-button-menu";
import "../../../components/ha-icon-button";
import "../../../components/ha-icon-next";
import "../../../components/ha-svg-icon";
+import "../../../components/ha-expansion-panel";
import { getSignedPath } from "../../../data/auth";
import {
ConfigEntry,
@@ -1354,16 +1355,14 @@ export class HaConfigDevicePage extends LitElement {
.filter((entity) => entity.newId)
.map(
(entity) =>
- html`
- ${entity.oldId} -> ${entity.newId}
- `
+ html`
+ ${entity.oldId} |
+ ${entity.newId} |
+
`
);
const dialogNoRenames = entityIdRenames
.filter((entity) => !entity.newId)
- .map(
- (entity) =>
- html`${entity.oldId}`
- );
+ .map((entity) => html`${entity.oldId}`);
if (dialogRenames.length) {
renameEntityid = await showConfirmationDialog(this, {
@@ -1372,17 +1371,46 @@ export class HaConfigDevicePage extends LitElement {
),
text: html`${this.hass.localize(
"ui.panel.config.devices.confirm_rename_entity_ids_warning"
- )}
${this.hass.localize(
- "ui.panel.config.devices.confirm_rename_entity_will_rename"
- )}:
- ${dialogRenames}
+ )}
+
+ ${this.hass.localize(
+ "ui.panel.config.devices.confirm_rename_entity_will_rename",
+ { count: dialogRenames.length }
+ )}
+
+
+
+
+ ${this.hass.localize(
+ "ui.panel.config.devices.confirm_rename_old"
+ )}
+ |
+
+ ${this.hass.localize(
+ "ui.panel.config.devices.confirm_rename_new"
+ )}
+ |
+
+ ${dialogRenames}
+
+
+
${dialogNoRenames.length
- ? html`
${this.hass.localize(
- "ui.panel.config.devices.confirm_rename_entity_wont_rename",
- { deviceSlug: oldDeviceSlug }
- )}:
- ${dialogNoRenames}`
- : nothing}`,
+ ? html`
+ ${this.hass.localize(
+ "ui.panel.config.devices.confirm_rename_entity_wont_rename",
+ {
+ count: dialogNoRenames.length,
+ deviceSlug: oldDeviceSlug,
+ }
+ )}
+ ${dialogNoRenames}`
+ : nothing} `,
confirmText: this.hass.localize("ui.common.rename"),
dismissText: this.hass.localize("ui.common.no"),
warning: true,
@@ -1392,11 +1420,15 @@ export class HaConfigDevicePage extends LitElement {
title: this.hass.localize(
"ui.panel.config.devices.confirm_rename_entity_no_renamable_entity_ids"
),
- text: html`${this.hass.localize(
- "ui.panel.config.devices.confirm_rename_entity_wont_rename",
- { deviceSlug: oldDeviceSlug }
- )}:
- ${dialogNoRenames}`,
+ text: html`
+ ${this.hass.localize(
+ "ui.panel.config.devices.confirm_rename_entity_wont_rename",
+ { deviceSlug: oldDeviceSlug, count: dialogNoRenames.length }
+ )}
+ ${dialogNoRenames}
+ `,
});
}
}
diff --git a/src/translations/en.json b/src/translations/en.json
index f3a2a622b764..fc4b61bc24bf 100644
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -4089,8 +4089,10 @@
},
"confirm_rename_entity_ids": "Do you also want to rename the entity IDs of your entities?",
"confirm_rename_entity_ids_warning": "This will not change any configuration (like automations, scripts, scenes, dashboards) that is currently using these entities! You will have to update them yourself to use the new entity IDs!",
- "confirm_rename_entity_will_rename": "The following entity IDs will be renamed",
- "confirm_rename_entity_wont_rename": "The following entity IDs will not be renamed as they do not contain the current device name ({deviceSlug})",
+ "confirm_rename_entity_will_rename": "{count} {count, plural,\n one {entity ID}\n other {entity IDs}\n} will be renamed",
+ "confirm_rename_new": "New",
+ "confirm_rename_old": "Old",
+ "confirm_rename_entity_wont_rename": "{count} {count, plural,\n one {entity ID}\n other {entity IDs}\n} will not be renamed as they do not contain the current device name ({deviceSlug})",
"confirm_rename_entity_no_renamable_entity_ids": "No renamable entity IDs",
"confirm_disable_config_entry": "There are no more devices for the config entry {entry_name}, do you want to instead disable the config entry?",
"update_device_error": "Updating the device failed",