File tree Expand file tree Collapse file tree
custom_components/localtuya/pytuya Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -925,7 +925,7 @@ def _decode_payload(self, payload):
925925 payload = payload .decode ()
926926 except Exception as ex :
927927 self .debug ("payload was not string type and decoding failed" )
928- raise DecodeError ("payload was not a string: %s" , ex )
928+ raise DecodeError ("payload was not a string: %s" % ex )
929929 # return self.error_json(ERR_JSON, payload)
930930
931931 if "data unvalid" in payload :
Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ disable=line-too-long,
176176 dangerous-default-value,
177177 unreachable,
178178 unnecessary-pass,
179- broad-except
179+ broad-except,
180+ raise-missing-from
180181
181182# Enable the message, report, category or checker with the given id(s). You can
182183# either give multiple identifier separated by comma (,) or put this option
You can’t perform that action at this time.
0 commit comments