Thank you for your interest in contributing to the SNMP Printer integration!
- Clone the repository:
git clone https://github.com/dsorlov/snmp_printer.git
cd snmp_printer- Install Home Assistant development environment (optional but recommended):
python3 -m venv venv
source venv/bin/activate
pip install homeassistant- Link the integration to your Home Assistant config directory:
ln -s $(pwd)/custom_components/snmp_printer ~/.homeassistant/custom_components/snmp_printerTest your changes with a real printer:
- Enable SNMP on your printer (consult printer manual)
- Restart Home Assistant
- Add the integration through the UI
- Verify all sensors are working correctly
- Follow PEP 8 guidelines
- Use type hints
- Add docstrings to all functions and classes
- Keep functions focused and small
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Use the GitHub issue tracker to report bugs. Include:
- Home Assistant version
- Integration version
- Printer model and manufacturer
- SNMP version used
- Detailed description of the issue
- Relevant log entries
Feature requests are welcome! Please provide:
- Clear description of the feature
- Use case and benefits
- Any relevant examples from other integrations
Be respectful and constructive in all interactions.
By contributing, you agree that your contributions will be licensed under the MIT License.