Skip to content

Commit

Permalink
fix/no_need_to_subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 12, 2023
1 parent d8ab63b commit 0907fbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ovos_PHAL/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from ovos_utils.log import LOG
from ovos_bus_client.client import MessageBusClient
from ovos_utils.process_utils import ProcessStatus, StatusCallbackMap
from ovos_workshop import OVOSAbstractApplication


def on_ready():
Expand All @@ -26,7 +25,7 @@ def on_started():
LOG.info('PHAL is started')


class PHAL(OVOSAbstractApplication):
class PHAL:
"""
Args:
config (dict): PHAL config, usually from mycroft.conf
Expand All @@ -42,7 +41,9 @@ def __init__(self, config=None, bus=None,
if not bus:
bus = MessageBusClient()
bus.run_in_thread()
super().__init__(skill_id=skill_id, bus=bus)
self.skill_id = skill_id
self.bus = bus

ready_hook = kwargs.get('ready_hook', on_ready)
error_hook = kwargs.get('error_hook', on_error)
stopping_hook = kwargs.get('stopping_hook', on_stopping)
Expand Down

0 comments on commit 0907fbf

Please sign in to comment.