Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Implement debounce for brightness updates
Add debounce mechanism to StateManager for brightness updates - Introduce _pendingBrightnessUpdate property to track update state - Modify setBrightness method to cancel pending updates - Update UI state immediately for responsive feedback - Defer Home Assistant service call to reduce API requests - Remove unnecessary comment at the file start This change improves performance and user experience by reducing the frequency of API calls while maintaining UI responsiveness.
- Loading branch information