mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Clean helper config entry fetching in settings (#16709)
This commit is contained in:
parent
03eee9c7d5
commit
0db50d13d3
@ -55,6 +55,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||
}
|
||||
|
||||
private async _fetchHelperConfigEntry() {
|
||||
this._helperConfigEntry = undefined;
|
||||
if (!this.entry?.config_entry_id) {
|
||||
return;
|
||||
}
|
||||
@ -68,12 +69,9 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||
);
|
||||
if (manifest.integration_type === "helper") {
|
||||
this._helperConfigEntry = configEntry;
|
||||
} else {
|
||||
this._helperConfigEntry = undefined;
|
||||
}
|
||||
} catch (err) {
|
||||
this._helperConfigEntry = undefined;
|
||||
}
|
||||
// eslint-disable-next-line no-empty
|
||||
} catch (err) {}
|
||||
}
|
||||
|
||||
protected render() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user