Thanks for contributing to the NanoKVM Home Assistant integration.
- Open feature/fix PRs against
dev. mainis reserved for release-ready merges only.- If a PR is opened against
main, maintainers may retarget it todev.
Recommended flow:
- Create a branch from
dev. - Open PR into
dev. - After validation and review, changes are merged to
dev. - Release PRs merge
devintomain.
- Keep changes focused and small when possible.
- AI-assisted coding is welcome, but contributors are responsible for understanding, reviewing, and validating generated changes.
- Update README, SERVICES, strings, and translations together when behavior, services, entities, or user-facing text changes.
- Add tests for bug fixes and new behavior when practical.
Before opening a PR, run:
python -m ruff check custom_components/nanokvmpython -m py_compile custom_components/nanokvm/*.pypython -m json.tool hacs.jsonpython -m json.tool custom_components/nanokvm/manifest.jsonpython -m json.tool custom_components/nanokvm/strings.jsonpython -m json.tool custom_components/nanokvm/translations/en.jsonpython -m json.tool custom_components/nanokvm/translations/fr.jsonpython -m json.tool custom_components/nanokvm/translations/pt-BR.json
When behavior changes, also test the integration on a Home Assistant instance.
CI must pass on the PR branch:
.github/workflows/hacs.yaml.github/workflows/hassfest.yaml
- Use clear commit messages (e.g.,
fix: ...,feat: ...,docs: ...). - In the PR description, include:
- what changed
- why it changed
- how it was validated