OPCUA: fix display names appearing with a "LocalizedText(" prefix when browsing localized server. wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 19 Oct 2021 13:09:45 +0200
branchwxPython4
changeset 3340 a13da70a8ae4
parent 3339 057b4ba30c35
child 3344 4a08728a2ea4
OPCUA: fix display names appearing with a "LocalizedText(" prefix when browsing localized server.
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)