Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Upgrade websocket-client to 1.2.1 #2879

Merged
merged 4 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mycroft/client/enclosure/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def open(self):
LOG.info('New Connection opened!')
self.synchronize()

def on_close(self):
def on_close(self, _):
LOG.info('Closing {}'.format(id(self)))
GUIWebsocketHandler.clients.remove(self)

Expand Down Expand Up @@ -525,7 +525,7 @@ def synchronize(self):
})
namespace_pos += 1

def on_message(self, message):
def on_message(self, _, message):
LOG.info("Received: {}".format(message))
msg = json.loads(message)
if (msg.get('type') == "mycroft.events.triggered" and
Expand Down
6 changes: 3 additions & 3 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ gTTS>=2.2.2,<2.3.0
PyAudio==0.2.11
pyee==8.1.0
SpeechRecognition==3.8.1
tornado==6.0.3
websocket-client==0.54.0
tornado~=6.1
websocket-client~=1.2.1
requests-futures==0.9.5
pyserial==3.0
psutil==5.6.6
Expand All @@ -18,7 +18,7 @@ PyYAML==5.4
lingua-franca==0.4.2
msm==0.8.9
msk==0.3.16
mycroft-messagebus-client==0.9.1
mycroft-messagebus-client==0.9.4
adapt-parser==0.5.1
padatious==0.4.8
fann2==1.0.7
Expand Down
4 changes: 2 additions & 2 deletions test/integrationtests/voight_kampff/features/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self):
self.new_message_available = Event()
self._processed_messages = 0

def on_message(self, message):
def on_message(self, _, message):
"""Extends normal operation by storing the received message.

Args:
Expand All @@ -58,7 +58,7 @@ def on_message(self, message):
with self.message_lock:
self.messages.append(Message.deserialize(message))
self.new_message_available.set()
super().on_message(message)
super().on_message(_, message)

def get_messages(self, msg_type):
"""Get messages from received list of messages.
Expand Down