diff --git a/src/panels/config/entities/entity-registry-settings-editor.ts b/src/panels/config/entities/entity-registry-settings-editor.ts
index 245b08bf41..c590ebcda4 100644
--- a/src/panels/config/entities/entity-registry-settings-editor.ts
+++ b/src/panels/config/entities/entity-registry-settings-editor.ts
@@ -608,11 +608,10 @@ export class EntityRegistrySettingsEditor extends LitElement {
.disabled=${this.disabled}
@input=${this._entityIdChanged}
>
- ${!this.entry.device_id || this._areaId || this._noDeviceArea
+ ${!this.entry.device_id
? html``
@@ -794,40 +793,49 @@ export class EntityRegistrySettingsEditor extends LitElement {
${this.entry.device_id
? html`
- ${this.hass.localize(
- "ui.dialogs.entity_registry.editor.use_device_area"
- )}
- ${this.hass.devices[this.entry.device_id].area_id
- ? `(${
- this.hass.areas[
- this.hass.devices[this.entry.device_id].area_id!
- ]?.name
- })`
- : ""}
- ${this.hass.localize(
- "ui.dialogs.entity_registry.editor.change_device_settings",
- {
- link: html``,
- }
- )}
-
- `
+ ${this.hass.localize(
+ "ui.dialogs.entity_registry.editor.use_device_area"
+ )}
+ ${this.hass.devices[this.entry.device_id].area_id
+ ? `(${
+ this.hass.areas[
+ this.hass.devices[this.entry.device_id].area_id!
+ ]?.name
+ })`
+ : ""}
+ ${this.hass.localize(
+ "ui.dialogs.entity_registry.editor.change_device_settings",
+ {
+ link: html``,
+ }
+ )}
+
+
+ ${this._areaId || this._noDeviceArea
+ ? html``
+ : ""} `
: ""}
`;
}