From 80c0bc84acf58a93f23cb52c2768614a7a49aa13 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Wed, 27 Mar 2024 23:05:33 +0000 Subject: [PATCH] fix config closes https://github.com/OpenVoiceOS/skill-ovos-naptime/issues/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) --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 202b4df..0106da4 100644 --- a/__init__.py +++ b/__init__.py @@ -50,7 +50,7 @@ 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 @@ -58,7 +58,7 @@ def wake_word(self): # - 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