Skip to content

Commit

Permalink
Fixed a bug where no-state-passing drivers would crash ZPUI
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed May 7, 2019
1 parent f97b8c7 commit 023df8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def process_key(self, data):
if isinstance(data, (tuple, list)) and len(data) == 2:
key, state = data
logger.debug("Received key: {}, state: {}".format(key, state))
elif isinstance(key, basestring):
elif isinstance(data, basestring):
key = data
logger.debug("Received key: {}".format(key))
else:
Expand Down

0 comments on commit 023df8c

Please sign in to comment.