Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/data/config_flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ export const handleConfigFlowStep = (
HEADERS
);

export const ignoreConfigFlow = (hass: HomeAssistant, flowId: string) =>
hass.callWS({ type: "config_entries/ignore_flow", flow_id: flowId });
export const ignoreConfigFlow = (
hass: HomeAssistant,
flowId: string,
title: string
) =>
hass.callWS({ type: "config_entries/ignore_flow", flow_id: flowId, title });

export const deleteConfigFlow = (hass: HomeAssistant, flowId: string) =>
hass.callApi("DELETE", `config/config_entries/flow/${flowId}`);
Expand Down
12 changes: 10 additions & 2 deletions src/panels/config/integrations/ha-config-integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,11 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
/>
</div>
<h2>
${item.localized_domain_name}
${// In 2020.2 we added support for item.title. All ignored entries before
// that have title "Ignored" so we fallback to localized domain name.
item.title === "Ignored"
? item.localized_domain_name
: item.title}
</h2>
<mwc-button
@click=${this._removeIgnoredIntegration}
Expand Down Expand Up @@ -571,7 +575,11 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
if (!confirmed) {
return;
}
await ignoreConfigFlow(this.hass, flow.flow_id);
await ignoreConfigFlow(
this.hass,
flow.flow_id,
localizeConfigFlowTitle(this.hass.localize, flow)
);
this._loadConfigEntries();
getConfigFlowInProgressCollection(this.hass.connection).refresh();
}
Expand Down