mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 19:26:36 +00:00
Show name on ignored entries (#8135)
This commit is contained in:
parent
aba0e1f026
commit
cea3b8b010
@ -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}`);
|
||||
|
@ -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}
|
||||
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user