Skip to content

Commit b848e5c

Browse files
committed
use more robust function to convert from data type to variant type
1 parent 5ca03bb commit b848e5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opcua/common/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_data_type_as_variant_type(self):
7575
may not be convertible to VariantType
7676
"""
7777
result = self.get_attribute(ua.AttributeIds.DataType)
78-
return ua.datatype_to_varianttype(result.Value.Value)
78+
return opcua.common.ua_utils.data_type_to_variant_type(Node(self.server, result.Value.Value))
7979

8080
def get_access_level(self):
8181
"""

0 commit comments

Comments
 (0)