Running FleetAPI setup causes exception if configuration file is not found.
$ python3 -m pypowerwall fleetapi
pyPowerwall [0.10.1] - FleetAPI Mode Setup
No site_id set or returned by FleetAPI.
Traceback (most recent call last):
File "/Users/jason/miniforge3/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/jason/miniforge3/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/jason/Code/pypowerwall/pypowerwall/__main__.py", line 105, in <module>
c = PyPowerwallFleetAPI(None, authpath=authpath)
File "/Users/jason/Code/pypowerwall/pypowerwall/fleetapi/pypowerwall_fleetapi.py", line 73, in __init__
self.fleet = FleetAPI(configfile=self.configfile, site_id=self.siteid,
File "/Users/jason/Code/pypowerwall/pypowerwall/fleetapi/fleetapi.py", line 104, in __init__
raise Exception("No site_id found - Run Setup.")
Exception: No site_id found - Run Setup.
Correct behavior: Log debug level message and allow setup mode.
Running FleetAPI setup causes exception if configuration file is not found.
Correct behavior: Log debug level message and allow setup mode.