mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-02 00:27:49 +01:00
Fix clearing device class in entity registry (#30303)
This commit is contained in:
@@ -1077,7 +1077,7 @@ export class EntityRegistrySettingsEditor extends LitElement {
|
||||
this._deviceClass !==
|
||||
(this.entry.device_class || this.entry.original_device_class)
|
||||
) {
|
||||
params.device_class = this._deviceClass;
|
||||
params.device_class = this._deviceClass ?? null;
|
||||
}
|
||||
|
||||
const stateObj: HassEntity | undefined =
|
||||
|
||||
Reference in New Issue
Block a user