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

Commit 77549d0

Browse files
authored
Remove incorrectly added args in GUIWebsocketHandler methods (#3036)
PR #2879 updated the websocket-client and changed function signatures to account for API changes in that package. These were falsely changed as the GUI bus does not use the websocket-client. Consistency would be good however modifying the protocols would require significant work. For now we have two slightly different bus interfaces.
1 parent e1dcebf commit 77549d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mycroft/client/enclosure/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def open(self):
493493
LOG.info('New Connection opened!')
494494
self.synchronize()
495495

496-
def on_close(self, _):
496+
def on_close(self):
497497
LOG.info('Closing {}'.format(id(self)))
498498
GUIWebsocketHandler.clients.remove(self)
499499

@@ -525,7 +525,7 @@ def synchronize(self):
525525
})
526526
namespace_pos += 1
527527

528-
def on_message(self, _, message):
528+
def on_message(self, message):
529529
LOG.info("Received: {}".format(message))
530530
msg = json.loads(message)
531531
if (msg.get('type') == "mycroft.events.triggered" and

0 commit comments

Comments
 (0)