Skip to content

Enabling meal plan makes sensors unavailable. #312

Open
@bditter

Description

@bditter

Unless all relevant information is provided, I can't help you

Describe the bug
Enabling the Meal Plan sensor causes any other enabled sensor to become unavailable.

Expected behavior
All sensor displaying the relevant information.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Grocy integration'
  2. Click on Enable Meal Plan sensor
  3. Wait for 30-45 seconds.
  4. Any enabled sensors will become availiable.

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?
Stock and Meal Plan

What is your installed versions of Home Assistant, Grocy and this integration?

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

Have you added debugging to the log, and what does the log say?
This error originated from a custom integration.

Logger: custom_components.grocy.coordinator
Source: helpers/update_coordinator.py:386
integration: Grocy (documentation, issues)
First occurred: 11:38:19 AM (5 occurrences)
Last logged: 12:21:16 PM

Error fetching grocy data: Update failed: 1 validation error for MealPlanSectionResponse name none is not an allowed value (type=type_error.none.not_allowed)

JSON service data (if related to using a service)

{

}

Additional context
If you disable the Meal Plan sensor after 30-40 seconds or forcing a reload. All remaining enabled sensors will return to normal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions