Hi,
I am making a simple shopping list, where I have some predefined items I can add to the list by some buttons. The problem is the shopping list does not update unless I navigate back and forth.
Calling navigate to url is not an very elegant solution on Android.
Any suggestions for this? The optimal solution would be if the shopping list updated for each insertion
views:
- title: Handleliste
icon: mdi:cart
badges: []
cards:
- type: shopping-list
title: Handleliste
- type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: shopping_list.add_item
service_data:
name: Lettmelk
target: {}
name: Melk
icon: mdi:bottle-tonic
- type: button
tap_action:
action: call-service
service: shopping_list.add_item
service_data:
name: H-Melk
target: {}
name: H-Melk
icon: mdi:baby-bottle
show_state: false
- type: button
tap_action:
action: call-service
service: shopping_list.add_item
service_data:
name: Bleier
target: {}
name: Bleier
icon: mdi:human-baby-changing-table
- type: button
tap_action:
action: call-service
service: shopping_list.add_item
service_data:
name: Brød
target: {}
name: Brød
icon: mdi:baguette
- type: button
tap_action:
action: url
url_path: ''