Tox fixes, reduced to 3.9 only
This commit is contained in:
@@ -925,7 +925,7 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
|
||||
payload = payload.decode()
|
||||
except Exception as ex:
|
||||
self.debug("payload was not string type and decoding failed")
|
||||
raise DecodeError("payload was not a string: %s", ex)
|
||||
raise DecodeError("payload was not a string: %s" % ex)
|
||||
# return self.error_json(ERR_JSON, payload)
|
||||
|
||||
if "data unvalid" in payload:
|
||||
|
Reference in New Issue
Block a user