Statistics Sensor Not Working After Update

I updated my home assistant server after two years and had to change some syntax around my sensors that use mqtt. I also have a statistics sensor that is no longer recognized. I cant see the sensor in my dev tools but the configuration appears to look good and allows me to save my current yaml. Any idea why my keg_1_pour sensor is not showing up as an available sensor?

mqtt:
  sensor:
    - name: "Keg 1 gallon"
      state_topic: "tele/keg1/SENSOR"
      value_template: "{{ ((value_json.HX711.WeightRaw | float - 14241) | float * 0.000264) | round(2) }}"
      unit_of_measurement: "gal"
    - name: "Keg 1 oz"
      state_topic: "tele/keg1/SENSOR"
      value_template: "{{ ((value_json.HX711.WeightRaw | float - 14241) | float * 0.0338) | round(1) }}"
      unit_of_measurement: "fl. oz."
    - name: "Keg 1 ml"
      state_topic: "tele/keg1/SENSOR"
      value_template: "{{ (value_json.HX711.WeightRaw | float - 14241) | round(1) | abs }}"

 # NOT WORKING
sensor:
  - platform: statistics
    name: "Keg 1 pour"
    entity_id: sensor.keg_1_oz
    state_characteristic: change
    sampling_size: 2
    precision: 1