Releases: henne49/dbus-opendtu
v2.0.2 Minor Enhancement Release
v2.0.0
📌 Refactor & Enhance dbus-opendtu
Hi Team! 👋
This release introduces a series of improvements and refactorings to the dbus-opendtu
project. The main highlights include enhanced code readability, better testing coverage, and streamlined business logic. Here’s a detailed breakdown:
✨ Main Changes:
-
🧪 Added Unit Tests:
- Implemented unit tests for core functionalities.
- Mocked
requests.get
to simulate different responses for robust testing scenarios. - Configured different test scenarios for comprehensive test coverage.
-
🔄 Business Logic Updates:
- Refactored the main Python file for better readability.
- Centralized update triggers to avoid service-based updates for a more modular design.
🔧 Refactoring Highlights:
-
📂 Code Structure:
- Renamed and refactored
dbus-opendtu
for improved readability and maintainability. - Cleaned up
test_dbus-opendtu.py
by removing unused parameters and constants. - Moved constants to appropriate modules for better code organization.
- Improved import structure for clarity and consistency.
- Renamed and refactored
-
🛠️ Code Simplification:
- Consolidated redundant code and removed unused paths in the
DbusService
constructor. - Updated logging statements for better traceability.
- Unified file naming convention to use underscores (
_
) instead of hyphens (-
). - Shifted utility functions to helper modules and included unit tests to boost test coverage.
- Refactored
_get_serial
,_get_name
, and_get_status_url
methods for better encapsulation and readability.
- Consolidated redundant code and removed unused paths in the
🚀 Enhancements:
-
📝 Test Coverage:
- Achieved 66% code coverage with a focus on critical paths.
- Added template and inverter-specific tests to cover more edge cases.
- Adjusted
ahoy_0.5.93_live.json
to reflect new test configurations. - Relocated tests to the appropriate folder structure for clearer organization.
-
🔍 Code Quality:
- Replaced hardcoded values with constants to enhance maintainability.
- Configured test coverage tools and scripts to ensure ongoing code quality.
🙋♂️ Request for Support:
I could use your help to push the project towards 100% code coverage. It's a time-consuming task, so any support would be appreciated! If you can contribute by adding tests or enhancing existing ones, that would be fantastic. Let's aim for perfection together! 🚀
Thanks for reviewing! 😊 Feel free to comment or provide feedback.
What's Changed
- Update issue-report.md by @henne49 in #225
- Download latest stable release by @henne49 in #230
- 📌 Pull Request: Refactor & Enhance dbus-opendtu by @0x7878 in #227
Full Changelog: v1.2.40...v2.0.0
What's Changed
- Update issue-report.md by @henne49 in #225
- Download latest stable release by @henne49 in #230
- 📌 Pull Request: Refactor & Enhance dbus-opendtu by @0x7878 in #227
Full Changelog: v1.2.40...v2.0.0
v1.2.40
What's Changed
- run on fork codeql and pylint by @henne49 in #200
- chore: Mock config in unit tests for TestHelpersFunctions by @0x7878 in #201
- HOTFIX: Python 3.9 does not support type list by @0x7878 in #203
- Set StatusCode to 7 by @onceuponatime78 in #213
- Improvement on shell script log per service & uninstall by @henne49 in #210
- update doc by @henne49 in #215
- Change "productname" to be more speaking by @dsteinkopf in #217
- Update .gitattributes by @henne49 in #222
New Contributors
- @onceuponatime78 made their first contribution in #213
Full Changelog: v1.2.25...v1.2.40
v1.2.25
What's Changed
- move config.ini to config.example to make upgrades easier. by @stlorenz in #163
- make log file shorter and human readable by @henne49 in #177
- fixed wrong naming and typos in readme by @henne49 in #179
- modify github action to use github app by @henne49 in #197
- Fix of uninstall.sh script and typos by @henne49 in #198
New Contributors
Full Changelog: v1.2.0...v1.2.25
v1.2.0 Log File Handling
Please upgrade to this release - Improved Log File Handling
Log file handling is now handled by Venus OS and much smaller.
Important
Upgrade recommended
What's Changed
- Update README.md by @henne49 in #147
- Specify number of inverters in config.ini by @OFreddy in #148
- DevContainer and automatic versioning by @0x7878 in #158
- Update config.ini by @henne49 in #159
- Disable push in workflow version.yml by @henne49 in #168
- improve handling of a com.victronenergy.inverter by @dsteinkopf in #167
- Testcases for template by @dsteinkopf in #171
- Log file size by @henne49 in #174
New Contributors
Full Changelog: v1.1.0...v1.2.0