Skip to content

Commit

Permalink
move around one more deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 21, 2023
1 parent bf266ac commit a041ab0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
10 changes: 10 additions & 0 deletions mycroft/skills/intent_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ def get_skill_name(self, skill_id):
"""
return skill_id

@deprecated("use 'skillmanager.list' -> 'mycroft.skills.list' instead "
"this handler is not connected to bus events, subclassing it has no effect", "0.0.8")
def handle_get_skills(self, message):
"""Send registered skills to caller.
Argument:
message: query message to reply to.
"""
self.bus.emit(message.reply("intent.service.skills.reply", {"skills": []}))

@deprecated("handle_register_intent moved to AdaptService, overriding this method has no effect, "
"it has been disconnected from the bus event", "0.0.8")
def handle_register_vocab(self, message):
Expand Down
13 changes: 0 additions & 13 deletions ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def __init__(self, bus):

# Intents API
self.bus.on('intent.service.intent.get', self.handle_get_intent)
self.bus.on('intent.service.skills.get', self.handle_get_skills)

# Pipeline API
self.bus.on('recognizer_loop:utterance', self.handle_utterance)
Expand Down Expand Up @@ -115,18 +114,6 @@ def pipeline_matchers(self):
return matchers

# service implementation
@deprecated("skill manifest moved to SkillManager, "
"this handler is not connected to bus events, subclassing it has no effect")
def handle_get_skills(self, message):
"""Send registered skills to caller.
Argument:
message: query message to reply to.
"""
# TODO - move this to SkillManager
self.bus.emit(message.reply("intent.service.skills.reply",
{"skills": []}))

def _handle_transformers(self, message):
"""
Pipe utterance through transformer plugins to get more metadata.
Expand Down

0 comments on commit a041ab0

Please sign in to comment.