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':