test/list-modems : print Strength as an integer

org.ofono.NetworkRegistration property Strength is an integer,
so print it as such.
This commit is contained in:
Benoît Monin 2010-12-17 21:33:06 +01:00 committed by Denis Kenzior
parent 9a9b4105aa
commit 8a260d7a60
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ for path, properties in modems:
elif key in ["MobileNetworkCodeLength", elif key in ["MobileNetworkCodeLength",
"VoicemailMessageCount", "VoicemailMessageCount",
"MicrophoneVolume", "MicrophoneVolume",
"SpeakerVolume"]: "SpeakerVolume",
"Strength"]:
val = int(properties[key]) val = int(properties[key])
elif key in ["MainMenu"]: elif key in ["MainMenu"]:
val = ", ".join([ text + " (" + str(int(icon)) + val = ", ".join([ text + " (" + str(int(icon)) +