# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1634641785 -7200
# Node ID a13da70a8ae4688d9c60c19e4a270b188ce2b089
# Parent  057b4ba30c357ee2a515765bc26a504bb586d987
OPCUA: fix display names appearing with a "LocalizedText(" prefix when browsing localized server.

diff -r 057b4ba30c35 -r a13da70a8ae4 opc_ua/opcua_client_maker.py
--- a/opc_ua/opcua_client_maker.py	Tue Oct 19 12:58:22 2021 +0200
+++ b/opc_ua/opcua_client_maker.py	Tue Oct 19 13:09:45 2021 +0200
@@ -368,7 +368,7 @@
     def AddNodeItem(self, item_creation_func, node):
         nsid = node.nodeid.NamespaceIndex
         nid =  node.nodeid.Identifier
-        dname = node.get_display_name().to_string()
+        dname = node.get_display_name().Text
         cname = node.get_node_class().name
 
         item = item_creation_func(dname)