fix brand discovery

This commit is contained in:
Bram Kragten 2022-09-29 14:51:56 +02:00
parent 3bdc5ad420
commit 72ed6fdd6b
No known key found for this signature in database
GPG Key ID: FBE2DFDB363EF55B
2 changed files with 5 additions and 3 deletions

View File

@ -504,7 +504,9 @@ class AddIntegrationDialog extends LitElement {
}
if (integration.integrations) {
this._fetchFlowsInProgress(Object.keys(integration.integrations));
const integrations =
this._integrations![integration.domain].integrations!;
this._fetchFlowsInProgress(Object.keys(integrations));
this._pickedBrand = integration.domain;
return;
}

View File

@ -32,7 +32,7 @@ class HaDomainIntegrations extends LitElement {
public flowsInProgress?: DataEntryFlowProgress[];
protected render() {
return html`
return html`<mwc-list>
${this.flowsInProgress?.length
? html`<h3>We discovered the following:</h3>
${this.flowsInProgress.map(
@ -174,7 +174,7 @@ class HaDomainIntegrations extends LitElement {
>
</ha-integration-list-item>`}`
: ""}
`;
</mwc-list> `;
}
private async _integrationPicked(ev) {