Bump aiomealie to 0.10.1 (#149890)

This commit is contained in:
Andrew Jackson 2025-08-03 13:18:13 +01:00 committed by GitHub
parent fea5c63bba
commit 4318e29ce8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 16 additions and 23 deletions

View File

@ -7,5 +7,5 @@
"integration_type": "service",
"iot_class": "local_polling",
"quality_scale": "silver",
"requirements": ["aiomealie==0.10.0"]
"requirements": ["aiomealie==0.10.1"]
}

View File

@ -174,6 +174,7 @@ class MealieShoppingListTodoListEntity(MealieEntity, TodoListEntity):
if list_item.display.strip() != stripped_item_summary:
update_shopping_item.note = stripped_item_summary
update_shopping_item.position = position
if update_shopping_item.is_food is not None:
update_shopping_item.is_food = False
update_shopping_item.food_id = None
update_shopping_item.quantity = 0.0
@ -249,7 +250,7 @@ class MealieShoppingListTodoListEntity(MealieEntity, TodoListEntity):
mutate_shopping_item.note = item.note
mutate_shopping_item.checked = item.checked
if item.is_food:
if item.is_food or item.food_id:
mutate_shopping_item.food_id = item.food_id
mutate_shopping_item.unit_id = item.unit_id

2
requirements_all.txt generated
View File

@ -310,7 +310,7 @@ aiolookin==1.0.0
aiolyric==2.0.1
# homeassistant.components.mealie
aiomealie==0.10.0
aiomealie==0.10.1
# homeassistant.components.modern_forms
aiomodernforms==0.1.8

View File

@ -292,7 +292,7 @@ aiolookin==1.0.0
aiolyric==2.0.1
# homeassistant.components.mealie
aiomealie==0.10.0
aiomealie==0.10.1
# homeassistant.components.modern_forms
aiomodernforms==0.1.8

View File

@ -63,8 +63,6 @@
"unit": null,
"food": null,
"note": "130g dark couverture chocolate (min. 55% cocoa content)",
"isFood": true,
"disableAmount": false,
"display": "1 130g dark couverture chocolate (min. 55% cocoa content)",
"title": null,
"originalText": null,
@ -87,8 +85,6 @@
"unit": null,
"food": null,
"note": "150g softened butter",
"isFood": true,
"disableAmount": false,
"display": "1 150g softened butter",
"title": null,
"originalText": null,

View File

@ -9,8 +9,6 @@
"unit": null,
"food": null,
"note": "Apples",
"isFood": false,
"disableAmount": true,
"display": "2 Apples",
"shoppingListId": "9ce096fe-ded2-4077-877d-78ba450ab13e",
"checked": false,

View File

@ -383,10 +383,10 @@
'items': list([
dict({
'checked': False,
'disable_amount': True,
'disable_amount': None,
'display': '2 Apples',
'food_id': None,
'is_food': False,
'is_food': None,
'item_id': 'f45430f7-3edf-45a9-a50f-73bb375090be',
'label_id': None,
'list_id': '9ce096fe-ded2-4077-877d-78ba450ab13e',
@ -433,10 +433,10 @@
'items': list([
dict({
'checked': False,
'disable_amount': True,
'disable_amount': None,
'display': '2 Apples',
'food_id': None,
'is_food': False,
'is_food': None,
'item_id': 'f45430f7-3edf-45a9-a50f-73bb375090be',
'label_id': None,
'list_id': '9ce096fe-ded2-4077-877d-78ba450ab13e',
@ -483,10 +483,10 @@
'items': list([
dict({
'checked': False,
'disable_amount': True,
'disable_amount': None,
'display': '2 Apples',
'food_id': None,
'is_food': False,
'is_food': None,
'item_id': 'f45430f7-3edf-45a9-a50f-73bb375090be',
'label_id': None,
'list_id': '9ce096fe-ded2-4077-877d-78ba450ab13e',

View File

@ -1247,7 +1247,7 @@
'image': 'SuPW',
'ingredients': list([
dict({
'is_food': True,
'is_food': None,
'note': '130g dark couverture chocolate (min. 55% cocoa content)',
'quantity': 1.0,
'reference_id': 'a3adfe78-d157-44d8-98be-9c133e45bb4e',
@ -1261,7 +1261,7 @@
'unit': None,
}),
dict({
'is_food': True,
'is_food': None,
'note': '150g softened butter',
'quantity': 1.0,
'reference_id': 'f6ce06bf-8b02-43e6-8316-0dc3fb0da0fc',
@ -1763,7 +1763,7 @@
'image': 'SuPW',
'ingredients': list([
dict({
'is_food': True,
'is_food': None,
'note': '130g dark couverture chocolate (min. 55% cocoa content)',
'quantity': 1.0,
'reference_id': 'a3adfe78-d157-44d8-98be-9c133e45bb4e',
@ -1777,7 +1777,7 @@
'unit': None,
}),
dict({
'is_food': True,
'is_food': None,
'note': '150g softened butter',
'quantity': 1.0,
'reference_id': 'f6ce06bf-8b02-43e6-8316-0dc3fb0da0fc',

View File

@ -221,8 +221,6 @@ async def test_moving_todo_item(
display=None,
checked=False,
position=1,
is_food=False,
disable_amount=None,
quantity=2.0,
label_id=None,
food_id=None,