Fetch entries integration onboarding (#16424)

* Fetch loaded entries in integration onboarding

* Proper fix
This commit is contained in:
Paul Bottein 2023-05-05 16:24:32 +02:00 committed by GitHub
parent c7ec6903fe
commit 02542e528e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ class OnboardingIntegrations extends SubscribeMixin(LitElement) {
@property() public onboardingLocalize!: LocalizeFunc; @property() public onboardingLocalize!: LocalizeFunc;
@state() private _entries?: ConfigEntry[]; @state() private _entries: ConfigEntry[] = [];
@state() private _discovered?: DataEntryFlowProgress[]; @state() private _discovered?: DataEntryFlowProgress[];
@ -105,7 +105,7 @@ class OnboardingIntegrations extends SubscribeMixin(LitElement) {
} }
protected render() { protected render() {
if (!this._entries || !this._discovered) { if (!this._discovered) {
return nothing; return nothing;
} }
// Render discovered and existing entries together sorted by localized title. // Render discovered and existing entries together sorted by localized title.