mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Hide entity config option for user group (#2941)
This commit is contained in:
parent
7aa296e774
commit
68909c80ff
@ -176,14 +176,16 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
if (this.hass.user.is_admin) {
|
||||||
const info = await this.hass.callWS({
|
try {
|
||||||
type: "config/entity_registry/get",
|
const info = await this.hass.callWS({
|
||||||
entity_id: newVal.entity_id,
|
type: "config/entity_registry/get",
|
||||||
});
|
entity_id: newVal.entity_id,
|
||||||
this._registryInfo = info;
|
});
|
||||||
} catch (err) {
|
this._registryInfo = info;
|
||||||
this._registryInfo = null;
|
} catch (err) {
|
||||||
|
this._registryInfo = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user