|
| 1 | +# Contribution guidelines |
| 2 | + |
| 3 | +Contributing to this project should be as easy and transparent as possible, whether it's: |
| 4 | + |
| 5 | +- Reporting a bug |
| 6 | +- Discussing the current state of the code |
| 7 | +- Submitting a fix |
| 8 | +- Proposing new features |
| 9 | + |
| 10 | +## Github is used for everything |
| 11 | + |
| 12 | +Github is used to host code, to track issues and feature requests, as well as accept pull requests. |
| 13 | + |
| 14 | +Pull requests are the best way to propose changes to the codebase. |
| 15 | + |
| 16 | +1. Fork the repo and create your branch from `main`. |
| 17 | +2. If you've changed something, update the documentation. |
| 18 | +3. Make sure your code lints (using `scripts/lint`). |
| 19 | +4. Test you contribution. |
| 20 | +5. Issue that pull request! |
| 21 | + |
| 22 | +## Any contributions you make will be under the MIT Software License |
| 23 | + |
| 24 | +In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. |
| 25 | + |
| 26 | +## Report bugs using Github's [issues](../../issues) |
| 27 | + |
| 28 | +GitHub issues are used to track public bugs. |
| 29 | +Report a bug by [opening a new issue](../../issues/new/choose); it's that easy! |
| 30 | + |
| 31 | +## Write bug reports with detail, background, and sample code |
| 32 | + |
| 33 | +**Great Bug Reports** tend to have: |
| 34 | + |
| 35 | +- A quick summary and/or background |
| 36 | +- Steps to reproduce |
| 37 | + - Be specific! |
| 38 | + - Give sample code if you can. |
| 39 | +- What you expected would happen |
| 40 | +- What actually happens |
| 41 | +- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) |
| 42 | + |
| 43 | +People *love* thorough bug reports. I'm not even kidding. |
| 44 | + |
| 45 | +## Use a Consistent Coding Style |
| 46 | + |
| 47 | +Use [black](https://github.com/ambv/black) to make sure the code follows the style. |
| 48 | + |
| 49 | +## Test your code modification |
| 50 | + |
| 51 | +This custom component is based on [integration_blueprint template](https://github.com/ludeeus/integration_blueprint). |
| 52 | + |
| 53 | +It comes with development environment in a container, easy to launch |
| 54 | +if you use Visual Studio Code. With this container you will have a stand alone |
| 55 | +Home Assistant instance running and already configured with the included |
| 56 | +[`configuration.yaml`](./config/configuration.yaml) |
| 57 | +file. |
| 58 | + |
| 59 | +## License |
| 60 | + |
| 61 | +By contributing, you agree that your contributions will be licensed under its MIT License. |
0 commit comments