DTC P0504: Brake Switch "A" / "B" Correlation; DTC P0724: Brake Switch "B" Circuit High: Wiring Diagram
WARNING: This page is about a different car, the 2009 Lexus IS 350. However, it is still accessible from the selected car via links, so may be relevant.