Skip to content

Commit

Permalink
Convert shopping-list add item call to websockets (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
iantrich authored and balloob committed Nov 23, 2018
1 parent 3497cb8 commit 6885abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/shopping-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

0 comments on commit 6885abd

Please sign in to comment.