Skip to content
Permalink
Browse files
Switch to MessageBusClient
WebsocketClient was deprecated and replaced with MessageBusClient
  • Loading branch information
forslund committed Sep 2, 2019
1 parent 0cbd5ce commit 14cbb786c9198388801e4dcfa510233014c2d9cf
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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')

@@ -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)

0 comments on commit 14cbb78

Please sign in to comment.