Skip to content

Instantly share code, notes, and snippets.

@djmunro
Created April 13, 2016 23:33
Show Gist options
  • Save djmunro/173f6d26e4598cc199ec108df60f5a63 to your computer and use it in GitHub Desktop.
Save djmunro/173f6d26e4598cc199ec108df60f5a63 to your computer and use it in GitHub Desktop.
On the clock screen: False
Traceback (most recent call last):
File "hmi.py", line 42, in <module>
print('Found button: {}'.format(**get_button(data, ButtonDebugID.CLOSE)))
File "hmi.py", line 36, in get_button
return next(x['name'] for x in get_all_screens(data) if x['name'] == button.value)
File "hmi.py", line 36, in <genexpr>
return next(x['name'] for x in get_all_screens(data) if x['name'] == button.value)
TypeError: string indices must be integers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment