Yay for you! That was really nice, and so funny -- Pappy was like 'well, I'll just go in over here .. oops, can't get in that way ... h'mmm, wonder when she's gonna let me in ... oh ALRIGHT, I'll SIT!' My sister's Bearded Collie does the same thing. Looks for all the ways around the request and then almost huffs 'geez, OKAY!'
That was 3 minutes of your life very well-spent. You got what you wanted, you didn't get stressed, the dog got to see what non-compliance got him (that would be nothing!), and then he got praised for doing the right thing. Nicely done!