INA226 configuration from the documentation

Hi
While trying to set up a INA226 current sensor and going by the documentation I tried to use
adc_averaging: 128

but this generates a error when I try to compile

Thanks
Mark

[ adc_averaging: 128] is an invalid option for [sensor.ina226]. Please check the indentation.

Im not sure what Im doing wrong, leaving it out and the code compiles and runs Ok but I have some jittering in the readings I was hoping to filter out.

sensor:
  - platform: ina226
    address: 0x40
    shunt_resistance: 0.000310 ohm
  
    adc_averaging: 128



    current:
      name: "InverterCurrent"
    power:
      name: "InverterPower"
    bus_voltage:
      name: "InverterVoltage1"
    shunt_voltage:
      name: "InverterVoltage2"
    
    max_current: 200A
    update_interval: 1s