That worked for me for about a week.
Then our dog started opening her mouth and trying to drink the stream of water.
She’s a real stinker
Our dogs have all done that with the hose. They're inevitably afraid at first of the hose. After a few minutes they're trying to drink it and purposely getting wet just so they can shake off in front of the screaming grandkids. ;)