This workflow lets you test unreleased changes on a Home Assistant system without manually copying files through VS Code.
It assumes Home Assistant can reach GitHub from the Terminal add-on.
Open the Home Assistant Terminal add-on and run:
cd /config
git clone https://github.com/martindell/ha-entity-notes.git ha-entity-notes-dev
chmod +x /config/ha-entity-notes-dev/scripts/ha-deploy-dev.shDeploy main:
/config/ha-entity-notes-dev/scripts/ha-deploy-dev.sh mainRestart Home Assistant or reload the Entity Notes integration, then hard-refresh the browser.
On your development machine, push the branch you want to test:
git push origin your-branch-nameIn the Home Assistant Terminal add-on, deploy that branch:
/config/ha-entity-notes-dev/scripts/ha-deploy-dev.sh your-branch-nameThen restart Home Assistant or reload the integration, and hard-refresh the browser.
If the Home Assistant clone is already on the branch you want, run the script without a branch name:
/config/ha-entity-notes-dev/scripts/ha-deploy-dev.shThe script fetches from GitHub, fast-forwards the current branch, and replaces /config/custom_components/entity_notes with the version from the dev checkout.
The script defaults to:
REPO_DIR=/config/ha-entity-notes-dev
TARGET_PARENT=/config/custom_componentsOverride them only if your Home Assistant paths differ:
REPO_DIR=/config/my-dev-copy TARGET_PARENT=/config/custom_components ./scripts/ha-deploy-dev.sh main