Reading Sensor Data from multiple gateway devices

Hi all, I have multiple ESP32s’ as gateway devices and multiple Xiaomi Bluetooth Temperature sensors at my home.
i want my gateway(esp32) to fetch date from which ever sensor comes to its range and have it as singe entity

e.g. right now if kitchen sensor is in range of 2 gateways it available as 2 entities in esphome

if you guys can see in the image i have two entities of each reading from 2 gateway i need to know how to merge those