From 6b9f3df555fc8dc064e74c48dc3546c348a0d730 Mon Sep 17 00:00:00 2001 From: rospogrigio Date: Tue, 7 Feb 2023 17:54:02 +0100 Subject: [PATCH] Tox fixes, reduced to 3.9 only --- custom_components/localtuya/pytuya/__init__.py | 2 +- pylint.rc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index 472274ab0..746cc5478 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -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: diff --git a/pylint.rc b/pylint.rc index 223e8810b..ec808202b 100644 --- a/pylint.rc +++ b/pylint.rc @@ -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