Skip to content

Commit

Permalink
fix/optional_adapt
Browse files Browse the repository at this point in the history
adapt should not be imported
  • Loading branch information
JarbasAl committed May 7, 2022
1 parent 11ca7e6 commit a22ea67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ovos_utils/intents/intent_service_interface.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from os.path import exists, isfile

from adapt.intent import Intent

from mycroft_bus_client import MessageBusClient
from mycroft_bus_client.message import Message, dig_for_message
from ovos_utils import create_daemon
Expand Down Expand Up @@ -502,6 +502,9 @@ def get_keywords_manifest(self):

def open_intent_envelope(message):
"""Convert dictionary received over messagebus to Intent."""
# TODO can this method be fully removed from ovos_utils ?
from adapt.intent import Intent

intent_dict = message.data
return Intent(intent_dict.get('name'),
intent_dict.get('requires'),
Expand Down

0 comments on commit a22ea67

Please sign in to comment.