mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-07-10 07:13:49 +01:00
80b075f32b
* Update Supervisor before installing Home Assistant Core During the install loop, check if Supervisor has a pending update before attempting to install Home Assistant Core. Supervisor must always be updated first to avoid incompatibilities. - If auto-update is enabled, attempt to update Supervisor first. On success, the process restarts automatically. On failure, log a warning, capture the exception to Sentry, and retry after the standard install retry period. - If auto-update is disabled, log a warning that unknown issues may occur and proceed with the Core install anyway to avoid leaving users without a UI. Also extract the 30-second install retry wait into a shared INSTALL_RETRY_WAIT_SECS constant used across all sleep calls and log messages in install() and install_landingpage(). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix too many nested blocks issue * Better log messages Co-authored-by: Stefan Agner <stefan@agner.ch> * Remove unnecessary exception capture and fix tests --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Stefan Agner <stefan@agner.ch>