mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Convert shopping-list add item call to websockets (#2080)
This commit is contained in:
parent
3497cb892e
commit
6885abd234
@ -36,6 +36,7 @@ export const addItem = (
|
|||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
name: string
|
name: string
|
||||||
): Promise<ShoppingListItem> =>
|
): Promise<ShoppingListItem> =>
|
||||||
hass.callApi("POST", "shopping_list/item", {
|
hass.callWS({
|
||||||
|
type: "shopping_list/items/add",
|
||||||
name,
|
name,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user