test: fix parameter type error
authorPaavo Leinonen <paavo.leinonen@tieto.com>
Wed, 16 Feb 2011 08:58:53 +0000 (10:58 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 16 Feb 2011 15:09:46 +0000 (09:09 -0600)
in 'test-advice-of-charge'-script

test/test-advice-of-charge

index d71b7c6..9f3f655 100755 (executable)
@@ -73,7 +73,7 @@ if __name__ == "__main__":
        else:
                try:
                        if property == 'AccumulatedCallMeterMaximum':
-                               newvalue = int(newvalue)
+                               newvalue = dbus.UInt32(newvalue)
                        elif property == 'PricePerUnit':
                                newvalue = float(newvalue)
                        cm.SetProperty(property, newvalue, pin)