From 8296b1a5bcf4c5459f3dadaeb0b7445e82b98a25 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 16 Oct 2017 09:52:26 +0200 Subject: [PATCH] Fix python style warning for new example. --- src/assistant_library_with_local_commands_demo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/assistant_library_with_local_commands_demo.py b/src/assistant_library_with_local_commands_demo.py index dc95b00b..b728aaf9 100755 --- a/src/assistant_library_with_local_commands_demo.py +++ b/src/assistant_library_with_local_commands_demo.py @@ -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): @@ -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)