Skip to content

Commit

Permalink
fix/mycroft_compat (#485)
Browse files Browse the repository at this point in the history
* fix/mycroft_compat

* fix imports
  • Loading branch information
JarbasAl authored May 28, 2024
1 parent 79f4a01 commit f63aa3f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mycroft/enclosure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
to be a drop in replacement for mycroft-core
"""
from ovos_utils.enclosure.api import EnclosureAPI
from mycroft.enclosure.api import EnclosureAPI
9 changes: 8 additions & 1 deletion mycroft/enclosure/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@
to be a drop in replacement for mycroft-core
"""
from ovos_utils.enclosure.api import EnclosureAPI
from ovos_bus_client.apis.enclosure import EnclosureAPI as _EAPI
from mycroft.enclosure.display_manager import DisplayManager


class EnclosureAPI(_EAPI):
def __init__(self, bus, name=""):
super().__init__(bus, name)
self.display_manager = DisplayManager(self.skill_id)
2 changes: 1 addition & 1 deletion mycroft/enclosure/display_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import os

from ovos_bus_client.client import MessageBusClient
from ovos_utils import get_ipc_directory
from ovos_utils.signal import get_ipc_directory
from ovos_utils.log import LOG


Expand Down
2 changes: 1 addition & 1 deletion mycroft/gui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# backwards compat imports
from ovos_utils.gui import GUIInterface
from ovos_bus_client.apis.gui import GUIInterface
from ovos_workshop.skills.base import SkillGUI
3 changes: 1 addition & 2 deletions mycroft/gui/extensions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# backwards compat import
from ovos_gui.extensions import ExtensionsManager, GenericExtension, \
SmartSpeakerExtension, BigscreenExtension, MobileExtension, PlasmoidExtension
from ovos_gui.extensions import ExtensionsManager
3 changes: 2 additions & 1 deletion mycroft/skills/event_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
times.
"""
# backwards compat - do not delete until 0.2.0
from ovos_bus_client.util.scheduler import repeat_time, EventScheduler, create_basic_wrapper, \
from ovos_bus_client.util.scheduler import repeat_time, EventScheduler, \
EventContainer, EventSchedulerInterface
from ovos_utils.events import create_basic_wrapper

2 changes: 1 addition & 1 deletion mycroft/util/audio_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from ovos_listener.mic import MutableMicrophone
from ovos_config.config import Configuration
from ovos_utils.sound import play_wav
from ovos_utils.sound import play_audio as play_wav
from mycroft.util.audio_utils import find_input_device
from ovos_utils.log import LOG
import logging
Expand Down

0 comments on commit f63aa3f

Please sign in to comment.