Home Assistant stops repeatedly restarting its MQTT device connection when two saved discovery messages identify the same entity and one belongs to a disabled device. Each message could move the entity between enabled and disabled devices, starting another restart thirty seconds later.

The first discovered identity takes precedence. Home Assistant rejects the conflicting message and names both discovery topics in the error, directing the owner to clear at least one saved message. One restart of the connection can still occur just after startup before the conflict is recognized.