Skip to content

Commit

Permalink
russound: fix lib.network response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 authored Dec 13, 2024
1 parent 062c56f commit 16a8f6f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions russound/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 16a8f6f

Please sign in to comment.