-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mealie fields as shown in the UI do not work in the integration #130558
Comments
Hey there @joostlek, @andrew-codechimp, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) mealie documentation |
Just done some investigation on this recipe_id no longer accepts the slug, using the ID will work though as per example 1, possibly a breaking change in Mealie @joostlek since you wrote this piece maybe you have more thoughts?
|
Oh, did mealie change that? Let me check. I do like this added consistency though |
Ok, I see my confusion (and, I would argue, it's understandable given the error message). If you only set note_title or only set note_text, the error is something along:
So I believed that. You are right: the message is a lie! You can either set the recipe_id, or you can set both fields. It would be nice to add a comment in the documentation and change slightly the error message... it's not a big deal, but without your reply I would have missed that and assumed that it was broken. |
Oh but I think you should be able to set only note title. Let me check |
I tested both individually 🤷 Home Assistant throws me the same error (changing data['note_text'] for data['note_title'] ofc). I thought that it should allow me to do that, that's why I didn't bother to check both. Thanks for looking into it, and thanks also to andrew for pointing out what I was missing :) |
The problem
There are certain inconsistencies on the mealie integration (either that or I am looking at the wrong documentation).
First of all, the fields
note_text
andnote_title
are mentioned in the documentation and available in the UI, but trying to call set_mealplan with them populated result in an error.The UI also says "ID or slug" when specifying the
recipe_id
field, but the validation clearly tries to check it against a UUID and fails if a slug is used instead.What version of Home Assistant Core has the issue?
core-2024.11.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
mealie
Link to integration documentation on our website
https://www.home-assistant.io/integrations/mealie
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: