Sort list items alphabetically in Bring integration (#144700)

This commit is contained in:
Manu 2025-05-11 22:42:02 +02:00 committed by GitHub
parent 4faa920318
commit ca89aa7a94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,9 @@ class BringTodoListEntity(BringBaseEntity, TodoListEntity):
description=item.specification,
status=TodoItemStatus.NEEDS_ACTION,
)
for item in self.bring_list.content.items.purchase
for item in sorted(
self.bring_list.content.items.purchase, key=lambda i: i.itemId
)
),
*(
TodoItem(