Skip to content

v3.4.0 - Refactored integration

Compare
Choose a tag to compare
@alexdelprete alexdelprete released this 06 Feb 17:05
· 37 commits to master since this release
0b92777

This version is the result of a long learning process. I studied 3-4 complex integrations to better learn how HA works, spent a lot of time in HA dev docs, unfortunately not everything is properly documented, so you need some quality code to study in order to really understand how things work. HA is an amazing platform, devs made an amazing job. Can't say the same for documentation. :)

I tried to test at the best of my possibility, but you will be the final judge of this version. Please let me know how it works. The code is much more lean and efficient. A complete read of all modbus registers is done in 0.1s in my environment, very happy about the result.

What's Changed

  • Updated folder structure and repo configuration to reflect latest devcontainer template
  • Refactored the Data Coordinator code - studied other complex integrations, learned a lot and I applied everything I could
  • Execute modbus data fetching through hass executor job: this could potentially benefit users with unstable/slow inverter connection and low-resource devices such as RPi, that could notice HA becoming less responsive during the data fetch
  • Added configuration_url for device info
  • Added entity_category for sensors: all sensors not related to power/energy/etc. are in a separate diagnostic section
  • Optimized all debugging log messages
  • Many small changes I didn't track

New Contributors

Full Changelog: v3.3.2...v3.4.0