Skip to content

Commit

Permalink
fix setTVChannel klattimer#71
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-gt authored Aug 9, 2022
1 parent a430090 commit 19be574
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions LGTV/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ def parseargs(command, argv):
argv[i] = True
elif argv[i].lower() == "false":
argv[i] = False
try:
elif argv[i].isnumeric():
f = int(argv[i])
argv[i] = f
try:
f = float(argv[i])
argv[i] = f
except:
try:
f = float(argv[i])
argv[i] = f
except:
pass
pass
output[a] = argv[i]
return output

Expand Down

0 comments on commit 19be574

Please sign in to comment.