mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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[]>({
|
return hass.callWS<ConfigEntry[]>({
|
||||||
type: "config_entries/get",
|
type: "config_entries/get_matching",
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const getConfigEntry = (hass: HomeAssistant, configEntryId: string) =>
|
||||||
|
hass.callWS<{ config_entry: ConfigEntry }>({
|
||||||
|
type: "config_entries/get",
|
||||||
|
entry_id: configEntryId,
|
||||||
|
});
|
||||||
|
|
||||||
export const updateConfigEntry = (
|
export const updateConfigEntry = (
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
configEntryId: string,
|
configEntryId: string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user