From c74503d9203ea458debc119ac95eb07e1e9c120a Mon Sep 17 00:00:00 2001 From: miro Date: Mon, 9 Dec 2024 18:34:16 +0000 Subject: [PATCH] rename padatious:train to mycroft.skills.train to keep things intent engine agnostic --- ovos_core/skill_manager.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ovos_core/skill_manager.py b/ovos_core/skill_manager.py index 14aea9a9481f..519df38de232 100644 --- a/ovos_core/skill_manager.py +++ b/ovos_core/skill_manager.py @@ -16,7 +16,6 @@ import os from os.path import basename from threading import Thread, Event, Lock - from time import monotonic from ovos_bus_client.apis.enclosure import EnclosureAPI @@ -118,8 +117,9 @@ def __init__(self, bus, watchdog=None, alive_hook=on_alive, started_hook=on_star self._logged_skill_warnings = list() self._detected_installed_skills = bool(find_skill_plugins()) if not self._detected_installed_skills: - LOG.warning("No installed skills detected! if you are running skills in standalone mode ignore this warning," - " otherwise you probably want to install skills first!") + LOG.warning( + "No installed skills detected! if you are running skills in standalone mode ignore this warning," + " otherwise you probably want to install skills first!") self.config = Configuration() @@ -513,17 +513,15 @@ def _load_new_skills(self, network=None, internet=None, gui=None): if loaded_new: LOG.info("Requesting padatious intent training") try: - response = self.bus.wait_for_response(Message("padatious:train"), - "mycroft.skills.trained", - timeout=60) # 60 second timeout + response = self.bus.wait_for_response(Message("mycroft.skills.train"), + "mycroft.skills.trained", + timeout=60) # 60 second timeout if not response: LOG.error("Padatious training timed out") elif response.data.get('error'): LOG.error(f"Padatious training failed: {response.data['error']}") except Exception as e: LOG.exception(f"Error during padatious training: {e}") - else: - LOG.debug("Nothing new to train") def _get_skill_loader(self, skill_directory, init_bus=True): """Get a skill loader instance.