mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Fix entity settings for entity with no entity reg (#15577)
This commit is contained in:
parent
7724fa02d7
commit
682f383c9e
@ -81,7 +81,7 @@ export class MoreInfoDialog extends LitElement {
|
||||
|
||||
@state() private _childView?: ChildView;
|
||||
|
||||
@state() private _entry?: ExtEntityRegistryEntry;
|
||||
@state() private _entry?: ExtEntityRegistryEntry | null;
|
||||
|
||||
public showDialog(params: MoreInfoDialogParams) {
|
||||
this._entityId = params.entityId;
|
||||
@ -99,10 +99,14 @@ export class MoreInfoDialog extends LitElement {
|
||||
if (!this._entityId) {
|
||||
return;
|
||||
}
|
||||
this._entry = await getExtendedEntityRegistryEntry(
|
||||
this.hass,
|
||||
this._entityId
|
||||
);
|
||||
try {
|
||||
this._entry = await getExtendedEntityRegistryEntry(
|
||||
this.hass,
|
||||
this._entityId
|
||||
);
|
||||
} catch (e) {
|
||||
this._entry = null;
|
||||
}
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user