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

Commit

Permalink
use value prop in delete API call (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-green authored Nov 8, 2023
1 parent 7203cf9 commit 68aa607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygrocy/grocy.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def update_generic(self, entity_type: EntityType, object_id: int, updated_data):
)

def delete_generic(self, entity_type: EntityType, object_id: int):
return self._api_client.delete_generic(entity_type, object_id)
return self._api_client.delete_generic(entity_type.value, object_id)

def get_generic_objects_for_type(
self, entity_type: EntityType, query_filters: List[str] = None
Expand Down

0 comments on commit 68aa607

Please sign in to comment.