Closed bouwew closed 1 month ago
The changes in this pull request primarily involve updates to the handling of firmware versioning within the Plugwise codebase. The connect()
function now outputs the gateway firmware version, and several classes have modified their attributes and method signatures to utilize the Version
type from the packaging.version
module. Additionally, the project version has been incremented from 1.4.3 to 1.4.4, reflecting these updates.
File | Change Summary |
---|---|
CHANGELOG.md | Added new version entry v1.4.4; documented changes to connect() function. |
plugwise/init.py | Updated Smile class: changed smile_fw_version and smile_version to Version | None ; modified connect() return type to Version | None . |
plugwise/helper.py | Updated smile_fw_version in SmileHelper to Version | None ; added conversion to string in _appl_gateway_info . |
plugwise/legacy/helper.py | Updated smile_fw_version in SmileLegacyHelper to Version | None ; added import for Version . |
plugwise/legacy/smile.py | Changed smile_fw_version parameter type in SmileLegacyAPI constructor to Version | None . |
plugwise/smile.py | Changed smile_fw_version parameter type in SmileAPI constructor to Version | None . |
pyproject.toml | Updated project version from "1.4.3" to "1.4.4". |
tests/test_init.py | Enhanced tests: updated connection handling and assertions to use version objects. |
connect()
method in plugwise/__init__.py
, which is relevant as the main PR also updates the connect()
function to output the gateway firmware version.connect()
method in plugwise/__init__.py
, which aligns with the main PR's focus on modifications to the connect()
function, although the specific changes differ.quality
🐰 In the code where we connect,
A version now shines, what a trek!
From strings to types, we leap and bound,
WithVersion
in hand, clarity found.
In tests we trust, with checks so bright,
Plugwise is ready, all feels just right! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
bebf8e2
) to head (bd82299
). Report is 14 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Let it output the gateway firmware-version so it can be used for config_entry migration in HA.
Summary by CodeRabbit
Release Notes for Version 1.4.4
New Features
connect()
function now outputs the gateway firmware version, providing enhanced information during the connection process.Improvements
Chores