Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/mycroft_compat #485

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading