grocy-pyscanner icon indicating copy to clipboard operation
grocy-pyscanner copied to clipboard

Usage without homeassistant

Open sebascha opened this issue 4 years ago • 1 comments

Hy, are there any advices for users who dont use homeassistant? I set up all variables except homeassistant token and get the following output:

400
Traceback (most recent call last):
  File "barcode_reader.py", line 309, in <module>
    decrease_inventory(upc)
  File "barcode_reader.py", line 69, in decrease_inventory
    product_id_lookup(upc)
  File "barcode_reader.py", line 110, in product_id_lookup
    if homeassistant_token != '':
NameError: global name 'homeassistant_token' is not defined

And Yes, i am absolutely new to this. :-)

sebascha avatar Mar 27 '20 22:03 sebascha

I will have to take a look at the code for this and I'll provide an update here as soon as I do. I'll be in touch here in about a day or so.

TheFuzz4 avatar Mar 28 '20 00:03 TheFuzz4