I assumed the brown in the schematic is what looks yellow in the pic. IOW,
brown = yellow.
It's easy enough to check, as Davenn suggested,
It's possible the camera or lighting is a factor, but it more likely is an incorrect label. This wire-color mismatching between the label or schematic and the real product is common. It could have happened if the factory preprinted plenty of labels but ran out of brown colored wire. The assembelers would then use whatever wire they had on hand but still use the already-printed labels. They would hope if anybody needed to know the proper colors, it would be someone capable of figuering out their switch.