Closed bouwew closed 1 month ago
The recent updates to the Plugwise integration involve refactoring the handling of configuration entries across multiple files. The primary adjustment is shifting from using ConfigEntry
to a custom PlugwiseConfigEntry
type. This affects functions related to setting up entries, coordinating data, and accessing runtime metadata. Additionally, the change includes cleanup tasks such as removing obsolete code and constants.
Files | Change Summary |
---|---|
.../custom_components/plugwise/__init__.py |
Refactored to use PlugwiseConfigEntry instead of ConfigEntry and updated function signatures. |
.../plugwise/binary_sensor.py , .../plugwise/button.py , .../plugwise/climate.py , .../plugwise/number.py , .../plugwise/select.py , .../plugwise/sensor.py , .../plugwise/switch.py |
Refactored async_setup_entry to utilize PlugwiseConfigEntry and updated coordinator initialization. |
.../plugwise/config_flow.py |
Adjusted imports, exception handling, and updated method/class signatures for configuration options handling. |
.../plugwise/const.py |
Removed the UNDO_UPDATE_LISTENER constant. |
.../plugwise/diagnostics.py |
Modified entry parameter type from ConfigEntry to PlugwiseConfigEntry and updated access to coordinator . |
.../plugwise/entity.py |
Removed get_coordinator function and the COORDINATOR constant reference. |
CHANGELOG.md |
Documented ongoing implementation of various new Core features in version 0.51.3 . |
Sequence Diagram(s)
Through codes and scripts, the changes weave,
A dance of bits, where entries interleave,
With Plugwiseβs tune, components align,
And rabbits cheer, in joyous design.
Functions refined, old constants let go,
In this new harmony, our codes now glow. π
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?
Issues
8 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
All changes:
entry.runtime_data
as in Core Plugwise.update_listener
.config_entries
.Summary by CodeRabbit
Refactor
PlugwiseConfigEntry
usage across multiple components, simplifying setup and ensuring consistency.Documentation
CHANGELOG.md
to reflect the ongoing implementation of new Core features for version0.51.3
.