Some ESPHome devices show 2 ESPHome parent integrations

Hello everyone.
I have a couple esphome devices and in the esphome interations I can see them all in a list . this list shows who’s parent integration they belong to and they all show the entry esphome, but 2 of them show esphome twice and i would like to understand why and would like to clean that up.
Does anyone have a similar behavior and knows how to remediate?
Thx in advance

Hello. Could it be that the devices you mention have a relationship y an automation? E.g. a relay coupled with a thermostat?

Hello, thx for answering.
One of them is part of an automatic, the other not at all.
The fun part is that in the 2 instances they even can have different names
I attached a couple pics.
One list shows maybe delete entry, other shows double relay switch that isn’t in first list and the device itself shows 2 esphomes up right in summary



I have had this happen when I reused the device code for a new device but missed renaming a sensor so a duplicate was on both devices.

Check the yaml for each one.

Hello and thx for the quick answer.
So every sensor in those esphome ymls need to be uniquely named?
I def did copy and paste a lot from working template devices.
What exactly to look for?
Thx alot so far

This happens if you have a DNS IP assigned on one esp and a manual IP on the other.
Check that both devices have the same IP. If yes, remove device with manual IP from HA. Remove manual IP on esp and keep DNS, restart HA and add this device again.

Hmmm, they are all static but they might have been dynamic when first installed em.
So just trhowing gevice out and re add could solve it?

Oops, just saw how many typos i had in last post. Sorry about that…
I found the culprit and it is now fixed, thx alot