From 4e98a0462bef2185f8dbdf4353e8457f475adf26 Mon Sep 17 00:00:00 2001 From: jbbr Date: Mon, 6 Nov 2017 19:22:07 +0100 Subject: [PATCH] Narrow check for state change in led driver Fixes use of "LED.OFF" state in status_ui state map --- src/aiy/_drivers/_led.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aiy/_drivers/_led.py b/src/aiy/_drivers/_led.py index 9578a1c2..44951723 100644 --- a/src/aiy/_drivers/_led.py +++ b/src/aiy/_drivers/_led.py @@ -90,7 +90,7 @@ def _animate(self): running = self.running if not running: return - if state: + if state is not None: if not self._parse_state(state): raise ValueError('unsupported state: %d' % state) if self.iterator: