Usually it's just acting as a simple relay (on-off switch) so there's two physical wires.
I've got my Hive thermostat running great with various Bosch and Vaillant boilers. And it works great with HA.
Some newer boilers have 12V "smart" controls but still expose 230V "dumb" call for heating pins.