Skip to content

Commit

Permalink
Update backwards-compat imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Sep 20, 2024
1 parent 5f16016 commit d1e5468
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
try:
from ovos_utils.ocp import MediaType, PlaybackType
except ImportError:
# TODO: Pin ovos-utils 0.1 and remove this once supported in NeonCore
from ovos_workshop.backwards_compat import MediaType, PlaybackType
# TODO: Update import to ovos-utils when 0.1 is pinned as a minimum version
from ovos_workshop.decorators.ocp import MediaType, PlaybackType


class FreeMusicArchiveSkill(OVOSCommonPlaybackSkill):
def __init__(self, **kwargs):
Expand Down
3 changes: 2 additions & 1 deletion test/test_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import pytest

from ovos_workshop.backwards_compat import MediaType
# TODO: Update import to ovos-utils when 0.1 is pinned as a minimum version
from ovos_workshop.decorators.ocp import MediaType
from neon_minerva.tests.skill_unit_test_base import SkillTestCase


Expand Down

0 comments on commit d1e5468

Please sign in to comment.