Commit abcd84b7 authored by Mathias Lüdtke's avatar Mathias Lüdtke Committed by oroulet

prevent to_variant from converting variants

parent 582a8e4e
......@@ -72,5 +72,7 @@ def uamethod(func):
def to_variant(*args):
uaargs = []
for arg in args:
uaargs.append(ua.Variant(arg))
if not isinstance(arg, ua.Variant):
arg = ua.Variant(arg)
uaargs.append(arg)
return uaargs
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment