OPCUA: fix display names appearing with a "LocalizedText(" prefix when browsing localized server.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Tue, 19 Oct 2021 13:09:45 +0200
changeset 3367 3656d0d235c4
parent 3366 1ca385429bba
child 3368 5e220ce4cb9f
child 3372 e5cb7447320c
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)