mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Update WS commands for config entries (#16647)
This commit is contained in:
parent
6f48267dae
commit
04ae0b34af
@ -89,14 +89,14 @@ export const getConfigEntries = (
|
||||
}
|
||||
}
|
||||
return hass.callWS<ConfigEntry[]>({
|
||||
type: "config_entries/get_matching",
|
||||
type: "config_entries/get",
|
||||
...params,
|
||||
});
|
||||
};
|
||||
|
||||
export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) =>
|
||||
hass.callWS<{ config_entry: ConfigEntry }>({
|
||||
type: "config_entries/get",
|
||||
type: "config_entries/get_single",
|
||||
entry_id: configEntryId,
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user