Skip to content

Commit

Permalink
fix config (#20)
Browse files Browse the repository at this point in the history
closes #19

this skill was using the config object like in old mycroft, where `get` is a class method and accepts a list of config paths  (not part of ovos-config)
  • Loading branch information
JarbasAl authored Mar 27, 2024
1 parent ce59adb commit 58709e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ def initialize(self):

@property
def wake_word(self):
default = Configuration.get().get('listener', {}).get('wake_word')
default = Configuration().get('listener', {}).get('wake_word')
# with multiple wakewords we can't be 100% sure what the correct name is
# a device might have multiple names
# - if the wake_word is set in listener consider that the main wakeword
# - if the wake_word in listener config does not have a ww config ignore it
# - else use the first hotword that listens and is set to self.lang, assume config is ordered by priority
# - else use the first hotword that listens, assume config is ordered by priority

hotwords = Configuration.get().get('hotwords', {})
hotwords = Configuration().get('hotwords', {})
if default in hotwords:
return default

Expand Down

0 comments on commit 58709e4

Please sign in to comment.