summaryrefslogtreecommitdiffstats
path: root/test/test-advice-of-charge
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-advice-of-charge')
-rwxr-xr-xtest/test-advice-of-charge4
1 files changed, 4 insertions, 0 deletions
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