Repository navigation
v0.6.1 — Fix 500 on signin when SolisCloud creds are empty
Bug fix release. `pip install -U solisdash` / `uv tool upgrade solisdash`.
The bug
After completing the v0.6.0 setup wizard with the SolisCloud Key ID left blank (the wizard explicitly allows that), signing in returned an Internal Server Error:
```
File ".../solisdash/app.py", line 149, in get_solis_client
raise RuntimeError("SOLIS_KEY_ID / SOLIS_KEYSECRET not configured")
RuntimeError: SOLIS_KEY_ID / SOLIS_KEYSECRET not configured
```
The raise fired inside FastAPI's dependency resolution chain for the home page (`Depends(get_tiles_service)` → `Depends(get_solis_client)`), so `_resolve_tiles` never got to render the friendly alert.
The fix
`get_solis_client` builds the client with whatever creds it has. SolisCloud rejects empty / unsigned calls with HTTP 403 `"wrong sign"`; `_resolve_tiles` catches that and renders "SolisCloud rejected the call: …" on the dashboard — a visible nudge to fill the keys in instead of a crash.
Also
- `Settings.settings_customise_sources` re-resolves `user_config_path()` on every `Settings()` instantiation, so tests can redirect via `XDG_CONFIG_HOME` after import. (Old code baked the path at class-def time, which is why `v0.6.0` worked locally for me but the dev machine's user config kept leaking into tests.)
Tested
- 202 tests green (+2 regression tests: unit-level `get_solis_client` doesn't raise on empty creds, full signin → GET / flow returns 200 with the friendly alert).