Your spacing is wrong.
Note how you have two spaces on line 27 (one indent).
So line 31 should be 4 spaces (two indents).
Line 32 should be 6 spaces.
Try fix that and restart your HA.
Note that in the Server Control settings, there is a button that says “check syntax” which might have picked up on that.