Yes disclosure should have been done. Tomorrow morning call your realtor, ask why this info was not given before hand. Then let them know you will seek action against the home inspector, listing agent and seller. Unless any repairs you're out of pocket for are not paid by them sooner than later.

BUT................. you as new owner should have done a walk through before closing. Also when looking at the home, why didn't you ask about that switch then?