Deprecated `payload_template` option used in MQTT warning

Hi!

Since last month I am getting this warning in Home Assistant:

Deprecated payload_template option used in MQTT publish action call to topic flamingo/weather from payload template unknown. Use the payload option instead. In automations templates are supported natively. Update the automation or script to use the payload option instead and restart Home Assistant to fix this issue.

I checked the documentation but I am completely clueless about how to fix this, I am not using any payload_template in my config:

  light:
    - name: "flamingo"
      command_topic: "flamingo/power"
      state_topic: "flamingo/state"
      brightness_state_topic: "flamingo/brightness/state"
      brightness_command_topic: "flamingo/brightness/set"
      payload_on: "on"
      payload_off: "off"
      retain: false

I would be thankful for any clue.

Check automations.yaml and script.yaml.

The check clearly knows where the problem is. I wish it would link the offending automation directly in the warning.