pygrocy
pygrocy copied to clipboard
cant add product
trying to add product and i get this error:
pygrocy.errors.grocy_error.GrocyError: <Response [400]>
code: `from pygrocy import Grocy
grocy = Grocy("http://xxx.xxx.xxx.xxx", "x8E9FEIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9afb1G4ufFa", port = 9192)
#for entry in grocy.stock(): #print("{} in stock for product id {}".format(entry.available_amount, entry.id))
tes = grocy.add_product_by_barcode('456789', 1, 0) tes.id == 1 tes.name == 'test'`
im able to pull stock just cant add anything