Skip to content

Activating meal plan sensor crashes the component #325

Open
@Calhendren

Description

@Calhendren

Describe the bug
Activating the Meal Plan sensor will render all the sensors unavailable.

Expected behavior
Sensor should become unavailable, not crash others

To Reproduce
Steps to reproduce the behavior:

  1. Go to Grocy Custom Component
  2. Activate sensors including Meal Plan
  3. Wait 30 seconds
  4. All sensors will be marked as unavailable.

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?
I have tried not enabling the Meal Plan sensor and it works properly. It used to work before the pygrocy2 update, don't know if it's related or not.

What is your installed versions of Home Assistant, Grocy and this integration?
Home Assistant : 2025.1.2
Grocy : 4.3.0
Integration : 2025.1.1

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?
Here are the logs : home-assistant_grocy_2025-01-14T14-38-53.log

Additional context
I have tried debugging the issue myself, as I understand that it comes from the fact that product_qu_id should be a string, not an integer, and I've noticed it happens everytime I input a PRODUCT instead of a Recipe in the Meal Plan. Maybe it's something else, but maybe this will help ?

Kind regards,

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