Avoid core/supervisor stats API calls when no entities need them #102362
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.
Proposed change
This is the same as the addons but for core/supervisor as well
#101382 (comment)
First Update / startup ( 4 addons + core/supervisor stats updated )
2023-10-19 15:34:32.911 DEBUG (MainThread) [homeassistant.components.hassio] Finished fetching hassio data in 4.055 seconds (success: True)
Note: I've seen users with 20 addons take up to 90s to update so this still doesn't solve the startup issue (hassio takes the most startup time of any integration on these systems). Its a difficult problem as we need to know in advance which ones to update since even if we have separate coordinators we still have to do the first update. Something to contemplate for a future PR as this does reduce the run time once everything is up and going.
Subsequent updates
2023-10-19 16:04:32.710 DEBUG (MainThread) [homeassistant.components.hassio] Finished fetching hassio data in 0.018 seconds (success: True)
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: