mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05: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,
|
||||
name: string
|
||||
): Promise<ShoppingListItem> =>
|
||||
hass.callApi("POST", "shopping_list/item", {
|
||||
hass.callWS({
|
||||
type: "shopping_list/items/add",
|
||||
name,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user