You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace async_update with async_request_refresh - #1196
We originally used async_update() to ask for fresh data after a write command, but the current HA documentation says to use async_request_refresh() for this purpose. Updating the min HA requirement to 2025.11.0 since that version adds an update debouncer.
Updated refresh behavior after changing power settings, storage modes, switches, or other controls. The integration now requests fresh data after these actions.
Documentation
Updated the minimum required Home Assistant version to 2025.11.0. Users on earlier versions may need to upgrade before installing this release.
No actionable comments were generated in the recent review.
Walkthrough
Entity actions now request coordinator refreshes after their existing operations. The README and HACS metadata raise the minimum Home Assistant version to 2025.11.0. Tests check coordinator refresh requests for the site-limit switches.
Changes: Entity Refresh Behavior
Layer / File(s)
Summary
Minimum Home Assistant version README.md, hacs.json
The documented and declared minimum Home Assistant version changes to 2025.11.0.
Coordinator refresh after entity actions custom_components/solaredge_modbus_multi/button.py, custom_components/solaredge_modbus_multi/number.py, custom_components/solaredge_modbus_multi/select.py, custom_components/solaredge_modbus_multi/switch.py, tests/test_entity_logic.py
Button, number, select, and switch actions request coordinator refreshes instead of calling async_update(). Tests check coordinator refresh requests for the site-limit switches.
Write actions now request a coordinator refresh, and the minimum Home Assistant version is 2025.11.0. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Replace async_update with async_request_refresh" names the main change. The changeset replaces direct async_update() calls with async_request_refresh() across the button, number, select, an…
Description check
The description states the reason for the change: the current Home Assistant documentation recommends async_request_refresh() after a write command. It also explains the raised minimum Home Assistant …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Replace async_update with async_request_refresh" names the main change. The changeset replaces direct async_update() calls with async_request_refresh() across the button, number, select, and switch entities, and the tests are updated to match. The title is specific and concise.
Full details: Description check
Explanation
The description states the reason for the change: the current Home Assistant documentation recommends async_request_refresh() after a write command. It also explains the raised minimum Home Assistant version (2025.11.0) and links the documentation. The template is a contributor-guidelines comment with no required section headings, and the description covers the substance of the change. It does not mention testing on real hardware, which the template emphasizes, but that is not a required section.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We originally used
async_update()to ask for fresh data after a write command, but the current HA documentation says to useasync_request_refresh()for this purpose. Updating the min HA requirement to 2025.11.0 since that version adds an update debouncer.Docs: https://contributors.home-assistant.io/core/integrations/fetching-data/
Summary by CodeRabbit