Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Narrow check for state change in led driver
Browse files Browse the repository at this point in the history
Fixes use of "LED.OFF" state in status_ui state map
  • Loading branch information
jthomaschewski authored Nov 6, 2017
1 parent 3332a45 commit 4e98a04
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 4e98a04

Please sign in to comment.