Mealie import recipe service (#33654)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2024-07-11 00:04:01 +02:00 committed by GitHub
parent 7443e5ac78
commit 9c605c7195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,6 +52,7 @@ The Mealie integration has the following services:
- `mealie.get_mealplan` - `mealie.get_mealplan`
- `mealie.get_recipe` - `mealie.get_recipe`
- `mealie.import_recipe`
### Service `mealie.get_mealplan` ### Service `mealie.get_mealplan`
@ -70,4 +71,14 @@ Get the recipe for a specified recipe ID or slug.
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|------------------------|----------|-----------------------------------------------------| |------------------------|----------|-----------------------------------------------------|
| `config_entry_id` | No | The ID of the Mealie config entry to get data from. | | `config_entry_id` | No | The ID of the Mealie config entry to get data from. |
| `recipe_id` | No | The ID or the slug of the recipe to get. | | `recipe_id` | No | The ID or the slug of the recipe to get. |
### Service `mealie.import_recipe`
Import the recipe into Mealie from a URL.
| Service data attribute | Optional | Description |
|------------------------|----------|-----------------------------------------------------------------|
| `config_entry_id` | No | The ID of the Mealie config entry to get data from. |
| `url` | No | The URL of the recipe. |
| `include_tags` | Yes | Include tags from the website to the recipe. (false by default) |