An electronic faucet includes a spout assembly having a sensor configured to control the flow of water therethrough in response to the position of a spray head. Methods and apparatus for providing strain relief for electrical cables used in systems configured to provide fluid and, in particular, to methods and apparatus used to provide strain relief for electrical cables in electronic faucets.