mirror of
https://github.com/thekiwismarthome/shopping-list-manager.git
synced 2026-05-01 11:46:30 +00:00
Update handlers.py
This commit is contained in:
@@ -113,8 +113,15 @@ async def websocket_increment_item(
|
|||||||
item_id,
|
item_id,
|
||||||
quantity=new_quantity
|
quantity=new_quantity
|
||||||
)
|
)
|
||||||
|
|
||||||
if updated_item:
|
if updated_item:
|
||||||
|
hass.bus.async_fire(
|
||||||
|
EVENT_ITEM_UPDATED,
|
||||||
|
{
|
||||||
|
"list_id": updated_item.list_id,
|
||||||
|
"item_id": item_id,
|
||||||
|
"item": updated_item.to_dict()
|
||||||
|
}
|
||||||
|
)
|
||||||
connection.send_result(msg["id"], {
|
connection.send_result(msg["id"], {
|
||||||
"item": updated_item.to_dict()
|
"item": updated_item.to_dict()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user