fix(contacts): add missing out_path_hash_mode field for manual_add

The meshcore library's update_contact() reads out_path_hash_mode directly
from the contact dict. Without it, add_contact_manual() fails with
KeyError: 'out_path_hash_mode'. Default value 0 is correct for new
contacts with no known path (flood mode).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-24 17:58:06 +01:00
parent 3e8eb00e3e
commit 215515fe02

View File

@@ -1701,6 +1701,7 @@ class DeviceManager:
'flags': 0, 'flags': 0,
'out_path_len': -1, 'out_path_len': -1,
'out_path': '', 'out_path': '',
'out_path_hash_mode': 0,
'adv_name': name, 'adv_name': name,
'last_advert': 0, 'last_advert': 0,
'adv_lat': 0.0, 'adv_lat': 0.0,