Add dbus.Int32 support for variant parsing
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:

committed by
Thomas Haller

parent
7616469df8
commit
7bc01ea14c
@@ -299,6 +299,8 @@ class Util:
|
||||
return GLib.Variant("u", int(val))
|
||||
if isinstance(val, dbus.UInt64):
|
||||
return GLib.Variant("t", int(val))
|
||||
if isinstance(val, dbus.Int32):
|
||||
return GLib.Variant("i", int(val))
|
||||
if isinstance(val, dbus.Boolean):
|
||||
return GLib.Variant("b", bool(val))
|
||||
if isinstance(val, dbus.Byte):
|
||||
|
Reference in New Issue
Block a user