Fix not being able to set some attributes

This commit is contained in:
Denis Kenzior 2009-06-15 22:22:44 -05:00
parent 087472c402
commit 6ea7dba3b6
1 changed files with 4 additions and 0 deletions

View File

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