Create advanced flow if user in advanced mode (#5612)

This commit is contained in:
Paulus Schoutsen 2020-05-01 01:23:02 -07:00 committed by GitHub
parent 5a25b9c2f1
commit dfd9bf3c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ export const DISCOVERY_SOURCES = ["unignore", "homekit", "ssdp", "zeroconf"];
export const createConfigFlow = (hass: HomeAssistant, handler: string) =>
hass.callApi<DataEntryFlowStep>("POST", "config/config_entries/flow", {
handler,
show_advanced_options: Boolean(hass.userData?.showAdvanced),
});
export const fetchConfigFlow = (hass: HomeAssistant, flowId: string) =>

View File

@ -7,6 +7,7 @@ export const createOptionsFlow = (hass: HomeAssistant, handler: string) =>
"config/config_entries/options/flow",
{
handler,
show_advanced_options: Boolean(hass.userData?.showAdvanced),
}
);