From 215515fe024af13133267394fa525e39dc620950 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Tue, 24 Mar 2026 17:58:06 +0100 Subject: [PATCH] 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 --- app/device_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/device_manager.py b/app/device_manager.py index 895603f..385f4ee 100644 --- a/app/device_manager.py +++ b/app/device_manager.py @@ -1701,6 +1701,7 @@ class DeviceManager: 'flags': 0, 'out_path_len': -1, 'out_path': '', + 'out_path_hash_mode': 0, 'adv_name': name, 'last_advert': 0, 'adv_lat': 0.0,