From 4fd97e6ed80ea5666261e1d8d1319d478e6bb84b Mon Sep 17 00:00:00 2001 From: Alex Hope-O'Connor Date: Thu, 18 Dec 2025 02:05:36 +1000 Subject: [PATCH] Update test script to copy HA config files on redeploy --- scripts/test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/test.sh b/scripts/test.sh index 400848e..872c818 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -283,6 +283,15 @@ if [ "$CONTAINERS_RUNNING" = "1" ]; then echo "✅ Card file updated (${SOURCE_SIZE} bytes)" + # Copy configuration files to HA config directory (for dashboard changes) + echo "📋 Updating HA configuration files..." + for config_file in configuration.yaml ui-lovelace.yaml; do + if [ -f "test-ha/$config_file" ]; then + cp "test-ha/$config_file" "test-ha/config/$config_file" + echo " ✅ Updated $config_file" + fi + done + # Restart HA to pick up changes if docker compose version &> /dev/null; then DOCKER_COMPOSE_CMD="docker compose"