Skip to content

Commit

Permalink
Merge pull request #11 from SavageCore/fix/#9
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore authored Sep 3, 2024
2 parents d06fa8b + 87ae525 commit a46bf5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alexa_shopping_list_sync/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ async def update_local_shopping_list(driver: Driver, config) -> None:
try:
existing_items = await ha_ws.get_todo_list_items()

existing_item_names = [item["summary"].lower() for item in existing_items]

if existing_items is None:
existing_item_names = []
else:
existing_item_names = [item["summary"].lower() for item in existing_items]

for shopping_list_item in shopping_list_items:
if shopping_list_item.lower() not in existing_item_names:
Expand Down

0 comments on commit a46bf5e

Please sign in to comment.