mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix customizing sensor unit (#13710)
This commit is contained in:
parent
3cf14bb2e1
commit
5d6f446c30
@ -900,7 +900,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||
params.hidden_by = this._hiddenBy;
|
||||
}
|
||||
if (
|
||||
(domain === "number" || domain === "number") &&
|
||||
(domain === "number" || domain === "sensor") &&
|
||||
stateObj?.attributes?.unit_of_measurement !== this._unit_of_measurement
|
||||
) {
|
||||
params.options_domain = domain;
|
||||
|
Loading…
x
Reference in New Issue
Block a user