The Legend text for a trace comes from the name attribute so you will need to update that to whatever you want to set the legend to. You will also need to make sure the showlegend attribute within the trace (Not just in the layout. That one is for if you want the entire legend to be visible or not and it defaults to True in px.) is also set to True. You can do this like below:
Or, you can use update_traces. This updates all the traces in your plot to have the name=“Diner” but it doesn’t matter because there is only one trace at the moment.