Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

grocy.update_generic Entity_type not callable #160

Answered by SebRut
horphi0815 asked this question in Support
Discussion options

You must be logged in to vote

Hi,

update_generic expects an EntityType (as stated in the docs ;)). So you would need to change your code to something like this:

grocy.update_generic(entity_type=EntityType.LOCATIONS, object_id=9, updated_data={ "id": "8",  "name": "Cookies4"})

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@SebRut
Comment options

Answer selected by SebRut
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #159 on March 11, 2021 08:13.