small fixes

This commit is contained in:
Ian McEwen
2026-06-14 20:39:26 -07:00
parent 8c84074c1d
commit 9d445098f4
2 changed files with 2 additions and 2 deletions

View File

@@ -403,7 +403,7 @@ class Node:
if u.get("hwModel") and u["hwModel"] != "UNSET":
contact.user.hw_model = mesh_pb2.HardwareModel.Value(u["hwModel"])
if u.get("role"):
contact.user.role = u["role"]
contact.user.role = config_pb2.Config.DeviceConfig.Role.Value(u["role"])
if u.get("publicKey"):
contact.user.public_key = base64.b64decode(u["publicKey"])
if u.get("isLicensed"):