custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
158 stars 48 forks source link

validation error for BatteryDetailsResponse battery -> description none is not an allowed value #301

Open michaelblight opened 9 months ago

michaelblight commented 9 months ago

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

Describe the bug I updated to HAOS 2023.12.4 and v4.11.1 of this addon and now I get the following error:

This error originated from a custom integration.

Logger: custom_components.grocy.coordinator
Source: helpers/update_coordinator.py:332
Integration: Grocy (documentation, issues)
First occurred: 18:20:21 (1 occurrences)
Last logged: 18:20:21

Error fetching grocy data: Update failed: 1 validation error for BatteryDetailsResponse battery -> description none is not an allowed value (type=type_error.none.not_allowed)

I am able to "fix" the error by ensuring that all my battery entries in the Grocy addon have a description.

Expected behavior I should not have to have a description against every battery.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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?

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? See log error above

JSON service data (if related to using a service)

{

}

Additional context Add any other context about the problem here.