test: fix parameter type error

in 'test-advice-of-charge'-script
This commit is contained in:
Paavo Leinonen 2011-02-16 10:58:53 +02:00 committed by Denis Kenzior
parent beb72c921d
commit b3cd0b866b
1 changed files with 1 additions and 1 deletions

View File

@ -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)