Skip to content

Commit

Permalink
Fix/adapt (#39)
Browse files Browse the repository at this point in the history
* fix/optional_adapt

adapt should not be imported

authored-by: jarbasai <jarbasai@mailfence.com>
  • Loading branch information
JarbasAl committed May 7, 2022
1 parent cc9092e commit c7de616
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 c7de616

Please sign in to comment.