I think the problem might be that you have discovery on, on the master. (the HA that provides the sensors / switches to the slave) If you don’t want the master to populate any sensors / switches from mqtt config, then set discovery to false or set the discovery prefix to something different than the slave.
mqtt:
broker: 192.168.2.180
client_id: 1212
discovery: true
discovery_prefix: rpi3