Files
ha-template-migration/migrate_templates.sh
jessikitty 5171723a05 Add pure bash template migration script (no Python dependencies)
Safe and reliable bash-only implementation:
- Works in SSH add-on without Python
- Uses awk for YAML parsing (reliable and fast)
- Automatic timestamped backups
- Extracts legacy template definitions
- Converts to modern template: syntax
- Removes legacy platform: template blocks
- Adds modern templates to configuration.yaml
- Generates restore script for rollback
- Exit on error for safety (set -e)
- Temp directory cleanup with trap

Fixes all 67 template deprecation warnings without Python dependencies.
2025-12-23 12:30:19 +11:00

13 KiB