Update WS commands for config entries (#16647)

This commit is contained in:
Marvin Wichmann 2023-05-29 16:08:25 +02:00 committed by GitHub
parent 6f48267dae
commit 04ae0b34af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,14 +89,14 @@ export const getConfigEntries = (
} }
} }
return hass.callWS<ConfigEntry[]>({ return hass.callWS<ConfigEntry[]>({
type: "config_entries/get_matching", type: "config_entries/get",
...params, ...params,
}); });
}; };
export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) => export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) =>
hass.callWS<{ config_entry: ConfigEntry }>({ hass.callWS<{ config_entry: ConfigEntry }>({
type: "config_entries/get", type: "config_entries/get_single",
entry_id: configEntryId, entry_id: configEntryId,
}); });