'home assistant is not generating unique ID's" error

Hi all,

I’ve been getting this error for a long time. Have been ignoring it because it doesn’t generate any other problems than the error message itself, but I am getting curious. The error message is this:

ERROR (MainThread) [homeassistant.components.scene] Platform homeassistant does not generate unique IDs. ID 1673026761661 already exists - ignoring [*name of a scene in my scenes.yaml file*]

The scene still exists in the gui, I can edit and activate it and everything works as expected AFAICT. I looked up the scene definition, and there is an ID with that number there, but I cannot find the same ID number in any of the other files in my config folder. The scene is surrounded by two lines of code
- &id001 and *id001

I once had to restore my HA instance in a not-so-clean way, and redefined a number of scenes, it could be that in that period I briefly had two scenes with the same ID due to copy-pasting. Can’t quite remember if that is when it started.

Anyway, my question is: can I safely delete those two id lines of code and thereby get rid of the error message, or is there somewhere else I need to look to clean this up?