Thank you for your interest in contributing to the TRMNL Sensor Push integration for Home Assistant! This document provides guidelines and instructions for contributing.
- Fork the repository
- Create a new branch for your feature or bugfix
- Make your changes
- Test your changes thoroughly
- Submit a pull request
This is tricky because of the way Home Assistant handles integrations.
Once you have the integration installed then you can edit the files locally and send to the home assistant server via scp.
scp custom_components/trmnl_sensor_push/* user@homeassistant.local:/var/homeassistant/custom_components/trmnl_sensor_pushYou may need to change permissions on the files to make them writable.
You then need to restart the home assistant server to load the new files.
You can generate the API token from the Home Assistant web interface and then use that to restart the server.
curl -X POST \
-H "Authorization: Bearer ${HASS_API_TOKEN}" \
-H "Content-Type: application/json" \
"${HASS_URL}/api/services/homeassistant/restart"Before submitting a PR, please ensure:
- Your code follows the Home Assistant development guidelines
- You have tested your changes thoroughly in Home Assistant
- Your code is well-documented if required
- Update the README.md with details of any changes to the interface or functionality
- Update the version number in manifest.json following semantic versioning
- Ensure your PR description clearly describes the problem and solution
- Link any related issues
When reporting issues, please include:
- A clear description of the problem
- Steps to reproduce the issue
- Expected behavior
- Actual behavior
- Home Assistant version
- Integration version
- Relevant logs
Feature requests are welcome! Please provide:
- A clear description of the feature
- Use cases for the feature
- Any potential implementation details you've considered
If you have questions about contributing, please:
- Check existing issues and discussions
- Open a new discussion if your question hasn't been addressed
By contributing to this project, you agree that your contributions will be licensed under the MIT License.