Skip to content

v2.2 - Performance Optimization

Choose a tag to compare

@sxdjt sxdjt released this 27 Nov 07:16

What's Changed

Performance Improvements 🚀

  • Optimized render updates: Card now only re-renders when configured entities actually change state, not on every Home Assistant state update
  • Change detection: Added _hasEntitiesChanged() method to intelligently compare entity states between updates
  • Dramatic performance improvement: Eliminates unnecessary re-renders in systems with many entities updating frequently

Fixed

  • Performance issue where card re-rendered on every HA state update (#1)

Credits

  • Thanks to @andyp05 for reporting this issue and providing the initial optimized implementation approach

Full Changelog: v2.1...v2.2