From 6ea7dba3b6d0087eb872acd65181bf9ee61a506c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 15 Jun 2009 22:22:44 -0500 Subject: [PATCH] Fix not being able to set some attributes --- test/test-advice-of-charge | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-advice-of-charge b/test/test-advice-of-charge index 2ed2b5c6..b79a1410 100755 --- a/test/test-advice-of-charge +++ b/test/test-advice-of-charge @@ -72,6 +72,10 @@ if __name__ == "__main__": sys.exit(1) else: try: + if property == 'AccumulatedCallMeterMaximum': + newvalue = int(newvalue) + elif property == 'PricePerUnit': + newvalue = float(newvalue) cm.SetProperty(property, newvalue, pin) except dbus.DBusException, e: print "Unable to set property: ", e