diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 3d527ac..934bedc 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -284,7 +284,7 @@ class MeshInterface: # pylint: disable=R0902 logging.debug("getNestedValue was called without a nested path.") return None keys = key_path.split(".") - value = node_dict + value: Union[str, dict, None] = node_dict for key in keys: if isinstance(value, dict): value = value.get(key)