Skip to content

Commit 9d44509

Browse files
committed
small fixes
1 parent 8c84074 commit 9d44509

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

meshtastic/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def getContactURL(self, node_id: Union[int, str], should_ignore: bool = False, m
403403
if u.get("hwModel") and u["hwModel"] != "UNSET":
404404
contact.user.hw_model = mesh_pb2.HardwareModel.Value(u["hwModel"])
405405
if u.get("role"):
406-
contact.user.role = u["role"]
406+
contact.user.role = config_pb2.Config.DeviceConfig.Role.Value(u["role"])
407407
if u.get("publicKey"):
408408
contact.user.public_key = base64.b64decode(u["publicKey"])
409409
if u.get("isLicensed"):

meshtastic/tests/test_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Meshtastic unit tests for node.py"""
22
# pylint: disable=C0302
33

4+
import base64
45
import logging
56
import re
6-
import base64
77
from unittest.mock import MagicMock, patch
88

99
import pytest

0 commit comments

Comments
 (0)