diff --git a/src/panels/config/devices/ha-config-device-page.ts b/src/panels/config/devices/ha-config-device-page.ts index ec2e67ea68..dbc73f7bf8 100644 --- a/src/panels/config/devices/ha-config-device-page.ts +++ b/src/panels/config/devices/ha-config-device-page.ts @@ -44,6 +44,7 @@ import "./device-detail/ha-device-entities-card"; import "./device-detail/ha-device-info-card"; import { showDeviceAutomationDialog } from "./device-detail/show-dialog-device-automation"; import { slugify } from "../../../common/string/slugify"; +import { showConfirmationDialog } from "../../../dialogs/generic/show-dialog-box"; export interface EntityRegistryStateEntry extends EntityRegistryEntry { stateName?: string | null; @@ -549,11 +550,14 @@ export class HaConfigDevicePage extends LitElement { const renameEntityid = this.showAdvanced && - confirm( - this.hass.localize( + (await showConfirmationDialog(this, { + title: this.hass.localize( "ui.panel.config.devices.confirm_rename_entity_ids" - ) - ); + ), + text: this.hass.localize( + "ui.panel.config.devices.confirm_rename_entity_ids_warning" + ), + })); const updateProms = entities.map((entity) => { const name = entity.name || entity.stateName; diff --git a/src/translations/en.json b/src/translations/en.json index 6630adb0e6..7b020a8164 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1421,6 +1421,7 @@ "scripts": "Scripts", "scenes": "Scenes", "confirm_rename_entity_ids": "Do you also want to rename the entity id's of your entities?", + "confirm_rename_entity_ids_warning": "This will not change any configuration (like automations, scripts, scenes, Lovelace) that is currently using these entities, you will have to update them yourself.", "data_table": { "device": "Device", "manufacturer": "Manufacturer",