From 530e6fb7269bf61bd062dec1358d9a0ac04091df Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Fri, 29 Dec 2023 14:51:29 -0800 Subject: [PATCH] Fix skill settings init error --- neon_utils/skills/neon_skill.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/neon_utils/skills/neon_skill.py b/neon_utils/skills/neon_skill.py index 2120ab58..1054ce4d 100644 --- a/neon_utils/skills/neon_skill.py +++ b/neon_utils/skills/neon_skill.py @@ -531,12 +531,11 @@ def _init_settings(self): from neon_utils.configuration_utils import dict_update_keys BaseSkill._init_settings(self) settings_from_disk = dict(self.settings) - self.settings = dict_update_keys(self.settings, - self._read_default_settings()) - if self.settings != settings_from_disk: + dict_update_keys(self._settings, self._read_default_settings()) + if self._settings != settings_from_disk: LOG.info("Updated default settings from skill metadata") - self.settings.store() - self._initial_settings = dict(self.settings) + self._settings.store() + self._initial_settings = dict(self._settings) LOG.info(f"Skill initialized with settings: {self.settings}") def _handle_converse_request(self, message: Message):