Add helpers to list when searching in add integration (#12159)

This commit is contained in:
Bram Kragten
2022-03-30 15:55:54 +02:00
committed by GitHub
parent 062f21aa91
commit 86afd883a5
4 changed files with 56 additions and 24 deletions

View File

@@ -12,10 +12,14 @@ import {
} from "../../data/data_entry_flow";
import { HomeAssistant } from "../../types";
export interface FlowHandlers {
integrations: string[];
helpers: string[];
}
export interface FlowConfig {
loadDevicesAndAreas: boolean;
getFlowHandlers?: (hass: HomeAssistant) => Promise<string[]>;
getFlowHandlers?: (hass: HomeAssistant) => Promise<FlowHandlers>;
createFlow(hass: HomeAssistant, handler: string): Promise<DataEntryFlowStep>;