grocy icon indicating copy to clipboard operation
grocy copied to clipboard

Meal entry in meal plan without section cause error

Open AlesZurek opened this issue 2 years ago • 3 comments

Describe the bug Mealplan with default (empty) section cause breaking loading of grocy integration Exact error message is Logger: custom_components.grocy.coordinator Source: helpers/update_coordinator.py:229 Error fetching grocy data: Update failed: 1 validation error for MealPlanSectionResponse name none is not an allowed value (type=type_error.none.not_allowed)

Current workaround is to add "dummy" section and set it up for every meal added but if you forget whole integration will stop working.

Expected behavior Meal in meaplan without section (empty section) will be loaded and will not break loading of grocy integration.

To Reproduce Steps to reproduce the behavior:

  1. Go to Grocy mealplan and add meal without section image
  2. Reload integration in Home assistant
  3. See error in Home assistant logs Error fetching grocy data: Update failed: 1 validation error for MealPlanSectionResponse name none is not an allowed value (type=type_error.none.not_allowed)

General information to help debugging:

What sensors do you have enabled? Are they working and/or what state are they in? Do you have the corresponding functions enabled in Grocy? Chores, mealplan, overdue chores, overdue tasks, tasks

What is your installed versions of Home Assistant, Grocy and this integration? Grocy v4.3.4 by Grocy Version: v4.11.1

Home Assistant 2023.8.3

Grocy Version 4.0.2

How do you have Grocy installed? Add-on or external? External

AlesZurek avatar Aug 21 '23 20:08 AlesZurek

I have the same error

Disane87 avatar Dec 04 '23 07:12 Disane87

I am also having this issue.

themagicpanda avatar Dec 31 '23 20:12 themagicpanda

I am experiencing the same.

marikakief avatar Apr 04 '24 06:04 marikakief