ESPHOME problem with new name

Hello, I have a problem with Esphome. The problem is that I uploaded temperature sensors and everything worked. After some time I deleted the esp_teperatuta device and uploaded it with a different name and Home assistant does not see my ESP 8266 as if it remembered the old name and settings.

If I remember anything,
delete the device, clean build files and re-add it.

can you give more details