From 9207f6c4073e3ba6cb7f1fd8706b59a6bcd9a15a Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 27 Oct 2023 13:29:41 +0200 Subject: [PATCH] Fix unit of measurement not displayed in entity settings (#18440) --- src/panels/config/entities/entity-registry-settings-editor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/config/entities/entity-registry-settings-editor.ts b/src/panels/config/entities/entity-registry-settings-editor.ts index 42c64edd64df..0241542addea 100644 --- a/src/panels/config/entities/entity-registry-settings-editor.ts +++ b/src/panels/config/entities/entity-registry-settings-editor.ts @@ -200,6 +200,8 @@ export class EntityRegistrySettingsEditor extends LitElement { this._name = this.entry.name || ""; this._icon = this.entry.icon || ""; + this._deviceClass = + this.entry.device_class || this.entry.original_device_class; this._origEntityId = this.entry.entity_id; this._areaId = this.entry.area_id; this._entityId = this.entry.entity_id;