Skip to content

Commit

Permalink
Tox fixes, reduced to 3.9 only
Browse files Browse the repository at this point in the history
  • Loading branch information
rospogrigio committed Feb 7, 2023
1 parent d4af0f6 commit 6b9f3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/localtuya/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def _decode_payload(self, payload):
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:
Expand Down
3 changes: 2 additions & 1 deletion pylint.rc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ disable=line-too-long,
dangerous-default-value,
unreachable,
unnecessary-pass,
broad-except
broad-except,
raise-missing-from

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down

0 comments on commit 6b9f3df

Please sign in to comment.