11 lines
227 B
Python
11 lines
227 B
Python
|
from lg import Remote
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
try:
|
||
|
Remote()
|
||
|
except Remote.NoPairingKey:
|
||
|
key = raw_input('Enter pairing key: ')
|
||
|
remote = Remote(key)
|
||
|
|
||
|
remote.send_command(Remote.VOLUME_UP)
|