Skip to content

Commit

Permalink
Fix python style warning for new example.
Browse files Browse the repository at this point in the history
  • Loading branch information
ensonic committed Oct 16, 2017
1 parent 3749cb1 commit 8296b1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/assistant_library_with_local_commands_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@


def power_off_pi():
aiy.audio.say('Good bye!')
subprocess.call('sudo shutdown now', shell=True)
aiy.audio.say('Good bye!')
subprocess.call('sudo shutdown now', shell=True)


def reboot_pi():
aiy.audio.say('See you in a bit!')
subprocess.call('sudo reboot', shell=True)
aiy.audio.say('See you in a bit!')
subprocess.call('sudo reboot', shell=True)


def process_event(assistant, event):
Expand All @@ -59,7 +59,7 @@ def process_event(assistant, event):

elif event.type == EventType.ON_CONVERSATION_TURN_STARTED:
status_ui.status('listening')

elif event.type == EventType.ON_RECOGNIZING_SPEECH_FINISHED and event.args:
text = event.args['text']
print('You said:', text)
Expand Down

0 comments on commit 8296b1a

Please sign in to comment.