supervisor icon indicating copy to clipboard operation
supervisor copied to clipboard

Use rebuild when triggering safe mode from frontend

Open agners opened this issue 3 months ago • 2 comments

Description

Currently, the frontend uses the service call homeassistant.restart to trigger restart (with safe mode as attribute). The hassio integration registers for the "stop_handler" (see homeassistant/components/hassio/init.py), which then calls /homeassistant/restart.

Goal: Home Assistant restart into safe mode triggered from UI should rebuild when Supervisor is pressent

Option 1: Make Supervisor detect if the safe mode marker file is present, and "convert" the restart to a rebuild. This seems awkward, and "bends" the wish of the Core/hassio integration.

Option 2: Make hassio integration be aware that restart into safe mode is requested (extend the stop_handler), and request a /homeassistant/rebuild in that case. With that, Supervisor is not aware at all.

Additional context

No response

agners avatar Sep 30 '25 14:09 agners

Let's go for Option 2 here, this seems much cleaner to me and limits the changes to Core.

agners avatar Sep 30 '25 14:09 agners

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 30 '25 15:10 github-actions[bot]