OPC-UA: Removed more "LocalizedText()", this time in selected variable list
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 29 Oct 2021 18:00:54 +0200
changeset 3377 c25a752b664e
parent 3376 83ed4ea362db
child 3378 e655ec8162e1
OPC-UA: Removed more "LocalizedText()", this time in selected variable list
opc_ua/opcua_client_maker.py
--- a/opc_ua/opcua_client_maker.py	Fri Oct 29 11:49:22 2021 +0200
+++ b/opc_ua/opcua_client_maker.py	Fri Oct 29 18:00:54 2021 +0200
@@ -201,7 +201,7 @@
         nodes = ClientPanel.GetSelectedNodes()
         for node in nodes:
             cname = node.get_node_class().name
-            dname = node.get_display_name().to_string()
+            dname = node.get_display_name().Text
             if cname != "Variable":
                 self.log("Node {} ignored (not a variable)".format(dname))
                 continue