Get rid of old entity ID's after Shelly's are already deleted

Go to Settings → Devices & Services → Entities List.

Using button the top left filter by “Not provided”.

Delete the entities in bulk by selecting them and using the three dots menu.