From 012473c8d6063d3699aaf12328139039d459b3e1 Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:51:00 -0700 Subject: [PATCH] Deprecate `create_skill` method and update `__init__` for best practices (#19) --- __init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/__init__.py b/__init__.py index d4a20e1..32e8a3d 100644 --- a/__init__.py +++ b/__init__.py @@ -43,8 +43,8 @@ class FreeMusicArchiveSkill(OVOSCommonPlaybackSkill): - def __init__(self): - super(FreeMusicArchiveSkill, self).__init__() + def __init__(self, **kwargs): + OVOSCommonPlaybackSkill.__init__(self, **kwargs) self.supported_media = [MediaType.MUSIC, MediaType.AUDIO, MediaType.GENERIC] @@ -132,7 +132,3 @@ def search_fma(self, phrase, media_type=MediaType.GENERIC) -> List[dict]: } for song in songs] LOG.info(f"Returning {len(results)} results with confidence {score}") return results - - -def create_skill(): - return FreeMusicArchiveSkill()