mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-10-01 10:28:44 +01:00
A failed container or image removal left the plugin persisted as disabled but with its version and image still around, and every later disable request returned early because the plugin was already disabled. Move the removal into a dedicated step that stops the container, removes the image using the stored version and only then forgets the version. disable() always runs it, so a repeated request retries the cleanup, and the disabled load path runs it as well to catch a disable interrupted by a Supervisor exit. The step no longer relies on DockerInterface.remove, which derives the version from container metadata that is not available before an attach. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>