Skip to content

Commit

Permalink
Switch to MessageBusClient
Browse files Browse the repository at this point in the history
WebsocketClient was deprecated and replaced with MessageBusClient
  • Loading branch information
forslund committed Sep 2, 2019
1 parent 0cbd5ce commit 14cbb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __init__.py
Expand Up @@ -22,7 +22,7 @@
from mycroft.util.format import nice_time, nice_date
from mycroft.util.log import LOG
from mycroft.util import play_wav
from mycroft.messagebus.client.ws import WebsocketClient
from mycroft.messagebus.client import MessageBusClient

REMINDER_PING = join(dirname(__file__), 'twoBeep.wav')

Expand Down Expand Up @@ -69,7 +69,7 @@ def __init__(self):
def initialize(self):
# Handlers for notifications after speak
# TODO Make this work better in test
if isinstance(self.bus, WebsocketClient):
if isinstance(self.bus, MessageBusClient):
self.bus.on('speak', self.prime)
self.bus.on('mycroft.skill.handler.complete', self.notify)
self.bus.on('mycroft.skill.handler.start', self.reset)
Expand Down

0 comments on commit 14cbb78

Please sign in to comment.