Duplicate entity id

I originally create a template sensor as a helper in the GUI, however, it wasnt working, then i deleted it, and created it in the configuration.yaml file. my template sensor is working now, but know i have two entities, binary_sensor.living_room_occupied and binary_sensor.living_room_occupied_2. They seem to be mapped to the same entity as they are reporting identically. How do I get rid of # 2? the helper sensor in no longer there, I’ve reset HA multiple times. if i click on # 2 in entities, there is no delete option. my configuration.yaml only contains one living room sensor. Thanks for your advice.