Skip to content

Commit

Permalink
initialize new settings variable
Browse files Browse the repository at this point in the history
in older versions 0.9.15 and under, this skill will throw a key error every time you use the wake word. This is due to the skill settings erroring out due to the backend code changes that dynamically added a "name" for the label field.
  • Loading branch information
LearnedVector authored Feb 14, 2018
1 parent 22abfa1 commit 8cf1fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ def initialize(self):
self.settings['auto_brightness'] = False
if self.settings.get('eye color') is None:
self.settings['eye color'] = "default"
if self.settings.get('auto_dim_eyes') is None:
self.settings['auto_dim_eyes') = 'false'
if self.settings.get('use_listenting_beep') is None:
self.settings['use_listening_beep') = 'true'

self.brightness_dict = self.translate_namedvalues('brightness.levels')
self.color_dict = self.translate_namedvalues('colors')
Expand Down

0 comments on commit 8cf1fc2

Please sign in to comment.