Remove entity from energy dashboard

I have an old entity stuck in my energy dashboard. It doesn’t show the bin to delete it

Please advise. The entity does not appear HA.

Go to Developer Tools → Statistics. Click the “Fix Issue” button next to the entity id.

Thanks for the reply. Have done what you advised and restarted HA but still got the message and an extra message ‘statistic not defined’

Please can anyone help me with the above problem

Thank you

I had the same issue and no idea how to fix this. For me it was because I included an external sensor again but this got a different id in the external system, for that reason the entity id was also different in home assistant.

I fixed it by changing the id of the new energy sensor(can be any energy sensor i think, just save the current id somewhere) to the id shown in the energy dashboard. After that it will show up properly and you will have the regular remove icon/button. Remove the entity with the remove button in the energy dashboard and change back the id of the energy sensor used to the old id( the value you saved before).

After this the error is gone.

It seems somehow the reference stays in the energy dashboard even though it no longer exists and there is no proper way to remove it.