Switches in enclosures