Orphaned Sensors

I have 3 orphaned sensors showing up in statics (developer area).
I do not know what to do with them, I do not know if they came from the old Sun setup, that was replaced by sun.sun or Sun2 stuff.
They are:
sensor.elevation
sensor.max_elevation
sensor.min_elevation
Any one have a clue?

States or Statistics?

If you meant states, go to Settings → Devices & Services → Entities list (top off page).

Click on the right hand “Status” column title twice. You should now see entities you can delete marked with this symbol:

Screenshot 2023-12-09 at 11-14-37 Settings – Home Assistant

Tick the box on the left and hit “Remove Selected”.

If it wont let you do this it means the sensors were defined in YAML without a unique ID. You need to find that YAML, delete it and restart home assistant.

There are no entities, it is in the statistics being reported in the recorder. I just deleted them, which should also delete them from the database from the popup window.

In Developer Tools → Statistics do you see a FIX ISSUE button beside the sensors?

If so, click it.

Yes, I did click on that, two choices where cancel delete
I did the delete.

That should have fixed your issue.