mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-07-14 00:52:46 +01:00
8e714072c22e40729edef6799ec79c52f18bd803
So far a store reload lead to a reload of all add-ons twice, usually causing two messages in quick succession: ``` 2025-04-25 17:01:05.058 INFO (MainThread) [supervisor.store] Loading add-ons from store: 91 all - 0 new - 0 remove 2025-04-25 17:01:05.058 INFO (MainThread) [supervisor.store] Loading add-ons from store: 91 all - 0 new - 0 remove ``` This is because when repository changes are detected, `reload()` calls `load()` which then calls `update_repositories()` which ends up calling `_read_addons()`, while `reload()` itself calls `_read_addons()` after `load()` as well. One way to fix this would be to simply remove the `_read_addons()` call in `reload()`. However, it seems the `update_repositories()` call (via `load()`) is not necessary at all, as we don't add new store repositories in `reload()`, and we already made sure the built-ins are present on startup. So simply call `data.update()` to update the store data cache, as it was the case before #2225. There is no apparent reason documented why `data.update()` was changed to a `load()` call. It might be to ensure regularly that built-in repositories are still in the list of store repositories. But this type of regular invariant check is often harmful as it might hide bugs in other places. Supervisor will still call `update_repositories()` in `load()` to ensure all built-in repositories are present, just in case the local configuration file got modified or corrupted.
Home Assistant Supervisor
First private cloud solution for home automation
Home Assistant (former Hass.io) is a container-based system for managing your Home Assistant Core installation and related applications. The system is controlled via Home Assistant which communicates with the Supervisor. The Supervisor provides an API to manage the installation. This includes changing network settings or installing and updating software.
Installation
Installation instructions can be found at https://home-assistant.io/getting-started.
Development
For small changes and bugfixes you can just follow this, but for significant changes open a RFC first. Development instructions can be found here.
Release
Releases are done in 3 stages (channels) with this structure:
- Pull requests are merged to the
mainbranch. - A new build is pushed to the
devstage. - Releases are published.
- A new build is pushed to the
betastage. - The
stable.jsonfile is updated. - The build that was pushed to
betawill now be pushed tostable.
Description
Languages
Python
95.8%
JavaScript
4%
