Now dac.setup() takes an optional 3rd argument which is the initial DAC value.

This value (default 0) is loaded into the DAC before the analog part of the
DAC is enabled so the output should go from floating to the desired voltage.