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