Один из подходов заключается в использовании зацикливания dict.
Ex:
a = [{'site': 'KRM Plaza South Tower', 'building': 'd-block', 'level': 'reception', 'gw_mac': 'b827eb36fb0b_1', 'mac': 'e200383d1149a4c975a59618', 'rssi': -63.116279069767444}, {'site': 'KRM Plaza South Tower', 'building': 'd-block', 'level': 'reception', 'gw_mac': 'b827eb36fb0b_1', 'mac': 'e200383d1149a90975a59629', 'rssi': -61.5}, {'site': 'KRM Plaza South Tower', 'building': 'd-block', 'level': 'reception', 'gw_mac': 'b827eb36fb0b_2', 'mac': 'e200383d1149a90975a59629', 'rssi': -59.086021505376344}]
b = [{'mac': 'e200383d1149a4c975a59618', 'status': 'location_recording'}, {'mac': 'e200383d1149a90975a59629', 'status': 'location_environment'}]
b = {i['mac']: i["status"] for i in b} #loopup dict
for i in a:
if i["mac"] in b:
i.update({"status": b[i["mac"]]})
print(a)
Выход:
[{'building': 'd-block',
'gw_mac': 'b827eb36fb0b_1',
'level': 'reception',
'mac': 'e200383d1149a4c975a59618',
'rssi': -63.116279069767444,
'site': 'KRM Plaza South Tower',
'status': 'location_recording'},
{'building': 'd-block',
'gw_mac': 'b827eb36fb0b_1',
'level': 'reception',
'mac': 'e200383d1149a90975a59629',
'rssi': -61.5,
'site': 'KRM Plaza South Tower',
'status': 'location_environment'},
{'building': 'd-block',
'gw_mac': 'b827eb36fb0b_2',
'level': 'reception',
'mac': 'e200383d1149a90975a59629',
'rssi': -59.086021505376344,
'site': 'KRM Plaza South Tower',
'status': 'location_environment'}]