mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add WS command for getting a config entry (#16600)
* Add WS command for getting a config entry * Correct typing
This commit is contained in:
parent
847c8407de
commit
5a36f100a9
@ -89,11 +89,17 @@ export const getConfigEntries = (
|
||||
}
|
||||
}
|
||||
return hass.callWS<ConfigEntry[]>({
|
||||
type: "config_entries/get",
|
||||
type: "config_entries/get_matching",
|
||||
...params,
|
||||
});
|
||||
};
|
||||
|
||||
export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) =>
|
||||
hass.callWS<{ config_entry: ConfigEntry }>({
|
||||
type: "config_entries/get",
|
||||
entry_id: configEntryId,
|
||||
});
|
||||
|
||||
export const updateConfigEntry = (
|
||||
hass: HomeAssistant,
|
||||
configEntryId: string,
|
||||
|
Loading…
x
Reference in New Issue
Block a user