Code cleanup and optimizations (see comments); 1 breaking change!
·
136 commits
to main
since this release
What has changed?
This release is all about internal optimizations, code cleanup and better readability / traceability.
🔴 Breaking change 🔴
Please edit your configuration.yamlin the HA root and rename / shorten the logger:
before:
logger:
logs:
custom_components.helios_vallox_ventilation: error # could be also: info, debug (=more logs)
after (new format):
logger:
logs:
helios_vallox: error
Other changes
- cleaned up code for better readability and robustness
- centralized functionality and removed obsolete methods
- restructured order of methods for better traceability
- removed obsolete async_update() from switches
- removed optional entity attributes with state 'None' (=not set in yaml config)
- optimized validity check for write service, min/max value is now considered
- renamed 'default_value' attribute to 'factory_setting' to avoid confusion
- changed connection handling: connect/disconnect for each run now instead of a permanent connection
- improved socket robustness by adding / optimizing socket settings
- finalized first version of the Wiki after including lots of background information
- included a bus sniffer in tools/sniffer.py (use with care - you may trigger huge logs when running it for a long time)
Upcoming changes for next release (planned)
- include more information on the device in
vent_conf.yaml - make the old, ugly registers table in
const.pyobsolete - further improve logging
- rework error handling in case of connection breakdowns (currently it spams log files)
- fine-tune tools/sniffer
- feel free to request additional changes in the discussions section