v1.1.2 - dashboard WebSocket upgrade fix
Patch release for the dashboard Chat tab WebSocket failure reported in #22.
What changed:
- Preserve WebSocket upgrades through the add-on nginx
/dashboard/api/proxy used by the embedded Hermes dashboard Chat tab. - Forward
Upgradeand mappedConnectionheaders for/api/pty,/api/ws, and/api/eventswhile keeping normal REST calls on the same path sane. - Add regression coverage for primary and multi-profile dashboard API routes across Home Assistant Ingress, direct HTTP, and direct HTTPS render modes.
- Include the pending documentation/storage changelog notes in this release.
Verification:
git diff --check- OK.python3 -m pytest -q tests/test_dashboard_ingress_patches.py- 18 passed.python3 -m pytest -q- 43 passed, 1 skipped.bash -n hermes_agent/nginx-render.sh hermes_agent/run.sh hermes_agent/profile-init.sh- OK.python3 -m py_compile hermes_agent/dashboard-patches.py tests/test_dashboard_ingress_patches.py tests/test_multi_profile.py- OK.- Live Home Assistant local DEV add-on smoke - add-on started,
nginx -tpassed, dashboard returned HTTP 200 through HA Ingress, and/dashboard/api/pty,/dashboard/api/ws, and/dashboard/api/eventsall returnedHTTP/1.1 101 Switching Protocols.
Thanks to @imcvampire for the report and browser Network evidence that exposed the broken Chat WebSocket path.