mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Convert retrieval of items in shopping-list to websockets (#2041)
* Convert shopping-list to websockets * Update shopping-list.ts * Scale back to just retrieval of items to WS
This commit is contained in:
parent
2ca3a784e2
commit
86e501f0aa
@ -7,7 +7,9 @@ export interface ShoppingListItem {
|
||||
}
|
||||
|
||||
export const fetchItems = (hass: HomeAssistant): Promise<ShoppingListItem[]> =>
|
||||
hass.callApi("GET", "shopping_list");
|
||||
hass.callWS({
|
||||
type: "shopping_list/items",
|
||||
});
|
||||
|
||||
export const saveEdit = (
|
||||
hass: HomeAssistant,
|
||||
|
Loading…
x
Reference in New Issue
Block a user