mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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() {
|
private async _fetchHelperConfigEntry() {
|
||||||
|
this._helperConfigEntry = undefined;
|
||||||
if (!this.entry?.config_entry_id) {
|
if (!this.entry?.config_entry_id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -68,12 +69,9 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
|||||||
);
|
);
|
||||||
if (manifest.integration_type === "helper") {
|
if (manifest.integration_type === "helper") {
|
||||||
this._helperConfigEntry = configEntry;
|
this._helperConfigEntry = configEntry;
|
||||||
} else {
|
|
||||||
this._helperConfigEntry = undefined;
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
// eslint-disable-next-line no-empty
|
||||||
this._helperConfigEntry = undefined;
|
} catch (err) {}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected render() {
|
protected render() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user