Skip to content
Open
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
14 changes: 7 additions & 7 deletions src/dialogs/config-flow/show-dialog-sub-config-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export const showSubConfigFlowDialog = (
return step;
},
fetchFlow: async (hass, flowId) => {
const step = await fetchSubConfigFlow(hass, flowId);
await hass.loadFragmentTranslation("config");
await hass.loadBackendTranslation(
"config_subentries",
configEntry.domain
);
await hass.loadBackendTranslation("selector", configEntry.domain);
const [step] = await Promise.all([
fetchSubConfigFlow(hass, flowId),
hass.loadFragmentTranslation("config"),
hass.loadBackendTranslation("config_subentries", configEntry.domain),
hass.loadBackendTranslation("selector", configEntry.domain),
]);
flowType = step.handler[1]; // Update flowType based on fetched step
return step;
},
handleFlowStep: handleSubConfigFlowStep,
Expand Down
Loading