Solarbank Monitor:
<class 'UnboundLocalError'>: cannot access local variable 'use_file' where it is not associated with a value
Traceback (most recent call last):
File "/Users/js/repos/anker-solix-api/./solarbank_monitor.py", line 263, in <module>
if not asyncio.run(main()):
^^^^^^^^^^^^^^^^^^^
File "/Users/js/.pyenv/versions/3.12.1/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/js/.pyenv/versions/3.12.1/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/js/.pyenv/versions/3.12.1/lib/python3.12/asyncio/base_events.py", line 684, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/js/repos/anker-solix-api/./solarbank_monitor.py", line 93, in main
if use_file:
^^^^^^^^
UnboundLocalError: cannot access local variable 'use_file' where it is not associated with a value
This happens, when coding
USER
to the script