Skip to content

Commit

Permalink
Merge pull request google#167 from jbbr/patch-1
Browse files Browse the repository at this point in the history
Narrow check for state change in led driver
  • Loading branch information
ensonic authored Nov 28, 2017
2 parents e31c12d + 4e98a04 commit 7377006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiy/_drivers/_led.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7377006

Please sign in to comment.