From 16a8f6fdfe1e3226bb134bb0b9f750488bda1356 Mon Sep 17 00:00:00 2001 From: Morg42 <43153739+Morg42@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:36:30 +0100 Subject: [PATCH] russound: fix lib.network response handling --- russound/__init__.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/russound/__init__.py b/russound/__init__.py index 1d4520f10..ca50f2147 100755 --- a/russound/__init__.py +++ b/russound/__init__.py @@ -294,13 +294,8 @@ def _send_cmd(self, cmd): self._client.send(cmd.encode()) # - def found_terminator(self, resp): - try: - resp = resp.decode() - except Exception as e: - self.logger.error("found_terminator: exception in decode: {}".format(e)) - return - + def found_terminator(self, client, resp): # client is the Tcp_Client ref + """ callback method for lib.network Tcp_Client, aka "data received" """ try: self.logger.debug("Parse response: {0}".format(resp)) if resp[0] == 'S':