mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-29 05:29:39 +00:00
* Block OS updates when the system is unhealthy In #6024 we mark a system as unhealthy when multiple OS installations were found. The idea was to block OS updates in this case. However, it turns out that the OS update job was not checking the system health and thus allowed updates even when the system was marked as unhealthy. This commit adds the `JobCondition.HEALTHY` condition to the OS update job, ensuring that OS updates are only performed when the system is healthy. Users can force an OS update still by using `ha jobs options --ignore-conditions healthy`. * Add test for update of unhealthy system --------- Co-authored-by: Jan Čermák <sairon@sairon.cz>