Anrolosia / Shopping-List-with-Grocy

A Shopping list integration with Grocy for Home Assistant
MIT License
41 stars 1 forks source link

Missing shopping list items #6

Closed rachaelbond closed 1 year ago

rachaelbond commented 1 year ago

If a shopping list item has a quantity value < 1 (e.g. 0.5kg flour) than it isn't shown in the list

Anrolosia commented 1 year ago

Hey @rachaelbond , thanks for raising that issue, I'll take a look asap

Anrolosia commented 1 year ago

Just to be clear, you're talking about the card example I provided? Because I tested, and if I replace

          filter:
              include:
                - entity_id: sensor.shopping_list_with_grocy_.*
                  attributes:
                    qty_in_shopping_list: '>=1'
                  not:
                    attributes:
                      note: out_of_stock

by

          filter:
              include:
                - entity_id: sensor.shopping_list_with_grocy_.*
                  attributes:
                    qty_in_shopping_list: '>0'
                  not:
                    attributes:
                      note: out_of_stock

it works image

rachaelbond commented 1 year ago

Doh!! My bad :( It never occurred to me to check the filter condition. So sorry!

Anrolosia commented 1 year ago

It's fine ^^ I'll modify the readme later today to fix that. Have a great day

Anrolosia commented 1 year ago

Documentation has been updated! I'll close that ticket. Have a great one!