You don't have to. Design patterns are simply guidelines that some people in the past have found useful when writing applications of significant complexity.
In your case, if what you have to do is turn the light switch on and off, and not much else, the second option is a no brainer.
Less code is almost always better than more code.