[HOMEASSIST-5] Standalone dev harness with live and mock hass #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/HOMEASSIST-5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
HOMEASSIST-5 Dashboards: standalone dev harness with real websocket auth and mock-hass mode
Summary
@ha-dashboards/ui/dev:HassSourceabstraction,createMockHass/makeEntity(offline + tests),connectLiveHass(home-assistant-js-websocket, long-lived token fromVITE_HA_URL/VITE_HA_TOKEN),resolveHarnessMode(live only with both vars and no?mock; URL validated/normalized),DevHarness(wraps the panel in the realPanelProvider),mountHarness.main.tsxnow callsmountHarness; fixtures and the simulated location-update handler moved tosrc/mock.ts; oldDevHarness.tsxremoved.bun run dev mapstarts it.envDirpoints at the root.envfor dev/preview only (notbuild), so the token isn't baked into builds;.env.example+ README document the exposure and recommend a non-admin HA user's token.VITE_HA_TOKENin shell/CI when runningbuild, since Vite always inlinesVITE_-prefixed process env.🤖 Generated with Claude Code
https://claude.ai/code/session_01A6WV37dDVNs4Zhq7RQB4ku