diff --git a/src/panels/config/devices/ha-config-device-page.ts b/src/panels/config/devices/ha-config-device-page.ts
index d18fd3e5d4..6d56220da3 100644
--- a/src/panels/config/devices/ha-config-device-page.ts
+++ b/src/panels/config/devices/ha-config-device-page.ts
@@ -282,24 +282,21 @@ export class HaConfigDevicePage extends LitElement {
return;
}
buttons.push(html`
-
- ${buttons.length > 1
- ? this.hass.localize(
- `ui.panel.config.devices.delete_device_integration`,
- {
- integration: domainToName(
- this.hass.localize,
- entry.domain
- ),
- }
- )
- : this.hass.localize(`ui.panel.config.devices.delete_device`)}
-
- `);
+
+ ${buttons.length > 1
+ ? this.hass.localize(
+ `ui.panel.config.devices.delete_device_integration`,
+ {
+ integration: domainToName(this.hass.localize, entry.domain),
+ }
+ )
+ : this.hass.localize(`ui.panel.config.devices.delete_device`)}
+
+ `);
});
if (buttons.length > 0) {
@@ -308,7 +305,7 @@ export class HaConfigDevicePage extends LitElement {
}
private async _confirmDeleteEntry(e: MouseEvent): Promise {
- const entryId = (e.currentTarget as any). entryId;
+ const entryId = (e.currentTarget as any).entryId;
const confirmed = await showConfirmationDialog(this, {
text: this.hass.localize("ui.panel.config.devices.confirm_delete"),