Skip to content

Commit

Permalink
Undo extra import handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed May 8, 2024
1 parent dcd97cb commit fab759f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ovos_plugin_manager/templates/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
from ovos_utils.log import LOG
from ovos_utils.messagebus import FakeBus

try:
from ovos_utils.ocp import MediaState, PlayerState, TrackState
except ImportError:
MediaState, PlayerState, TrackState = None, None, None
from ovos_utils.ocp import MediaState, PlayerState, TrackState


class MediaBackend(metaclass=ABCMeta):
Expand All @@ -21,8 +18,6 @@ class MediaBackend(metaclass=ABCMeta):
"""

def __init__(self, config=None, bus=None):
if MediaState is None:
raise RuntimeError("Please update to ovos-utils~=0.1.")
self._now_playing = None # single uri
self._track_start_callback = None
self.supports_mime_hints = False
Expand Down

0 comments on commit fab759f

Please sign in to comment.