From 211319349b0e15835e1a96d93146dd43d4bf98f9 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 28 Aug 2017 10:39:08 +0200 Subject: [PATCH] Don't forget self (#124) flake8 testing of https://github.com/google/aiyprojects-raspbian on Python 3.6.2 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./src/aiy/_drivers/_status_ui.py:54:13: F821 undefined name 'self' self.trigger_sound_wave = os.path.expanduser(trigger_sound_wave) ^ ./src/aiy/_drivers/_status_ui.py:60:13: F821 undefined name 'self' self.trigger_sound_wave = None ^ 2 F821 undefined name 'self' ``` --- src/aiy/_drivers/_status_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiy/_drivers/_status_ui.py b/src/aiy/_drivers/_status_ui.py index cc098f43..39f97a73 100644 --- a/src/aiy/_drivers/_status_ui.py +++ b/src/aiy/_drivers/_status_ui.py @@ -43,7 +43,7 @@ def __init__(self, led_fifo=_LED_FIFO): led_fifo) self.led_fifo = None - def set_trigger_sound_wave(trigger_sound_wave): + def set_trigger_sound_wave(self, trigger_sound_wave): """Sets the trigger sound. A trigger sound is played when the status is 'listening' to indicate that the assistant is actively listening to the user.