Skip to content

Commit b7b5f65

Browse files
committed
Removed leftover debug code
1 parent 5fd9079 commit b7b5f65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

custom_components/grocy/helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def get_picture_url(self, product: CurrentStockResponse) -> str | None:
6868
if product.product and product.product.picture_file_name:
6969
b64name = base64.b64encode(product.product.picture_file_name.encode("ascii"))
7070
return f"/api/grocy/productpictures/{str(b64name, 'utf-8')}"
71-
elif product.product:
72-
return json.dumps(product.product.as_dict())
71+
7372
return None
7473

7574
def as_dict(self) -> Dict[str, Any]:

0 commit comments

Comments
 (0)