Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix config #20

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading