Pulse_meter. Skips the first pulse after reboot

Hello! I have configured the pulse_meter sensor to read out my water meter. After a reboot, the ESP skips the first pulse and no data appears in the HA. The counter starts working after the second pulse. How to count from the first pulse?

esphome:
  name: "watermetr"
  friendly_name: "watermetr"
  on_boot:
    then:
    - lambda: id(Water_VH_puls).publish_state(0);  
    - lambda: id(Water_VH_esp).publish_state(0);
    
sensor:
  - platform: pulse_meter
    name: "Water_VH_puls"
    id: "Water_VH_puls"
    pin:
      number: 2
      inverted: true
      mode:
        input: true
        pullup: true
    internal_filter_mode: PULSE
    internal_filter: 100ms
    timeout: 1min
    total:
      name: "Water_VH_esp"
      id: "Water_VH_esp"
      unit_of_measurement: "m3"
      state_class: "total_increasing"
      device_class: WATER
      accuracy_decimals: 2
      icon: "mdi:water"
      filters: 
        - multiply: 0.01           

After the first pulse:

image

Data begins to be updated only after the second pulse