Could someone help integrate a I2C 2 channel DAC into ESPHome

Hey,

I have this working via Arduino IDE using the sample code and its every good at but have failed in trying to integrate it into ESPHome using the .h file and a custom I2C Component but very unsure about it.

Bellow is the links to the Dfrobot wiki and also the Github for the GP8403. It looks relatily simple to code but I am not familiar with doing this at all. All it needs to do is set the range of either 0-5V or 0-10V, what channel or both and the output voltage.

https://wiki.dfrobot.com/SKU_DFR0971_2_Channel_I2C_0_10V_DAC_Module

Cheers all