Convert shopping-list add item call to websockets (#2080)

This commit is contained in:
Ian Richardson 2018-11-23 01:56:35 -06:00 committed by Paulus Schoutsen
parent 3497cb892e
commit 6885abd234

View File

@ -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,
});