feat(home-assistant): config-sync forces Lovelace YAML dashboard re-read #261

Merged
k.renner merged 1 commits from chore/config-sync-lovelace-reload into master 2026-07-16 11:45:13 +00:00
1 Commits
Author SHA1 Message Date
claude-botandClaude Opus 4.8 7ceb69f35f feat(home-assistant): config-sync forces Lovelace YAML dashboard re-read
reload_all does not re-read YAML-mode Lovelace dashboards (HA caches them until
restart or a lovelace/config force=true WS call), so merged dashboard changes
never appeared without a manual force-reload.

After a pull-merge that touches dashboards/ or ui-lovelace.yaml, config-sync now
also calls shell_command.reload_lovelace_yaml (defined in the HA config repo,
packages/lovelace_reload.yaml) which runs a websockets helper inside the HA
container to force the re-read. busybox can't speak WebSocket, hence the hand-off.

Needs a one-time HA restart to register the shell_command domain (not covered by
reload_all); until then reload_lovelace logs a warning and sync is otherwise fine.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QiLCinB7NLp7YdCjGYzvfh
2026-07-16 13:42:26 +02:00