Преглед изворни кода

fix(log helper): apparently in is even worse than input

Linter was flagging "input", also syntax highlighting showed that as a
keyword, but changing it to "in" though it shows normally in syntax
highlighting causes real errors.
Jason Rumney пре 2 месеци
родитељ
комит
e9875b0029
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      custom_components/tuya_local/helpers/log.py

+ 2 - 2
custom_components/tuya_local/helpers/log.py

@@ -5,9 +5,9 @@ Functions for logging
 import json
 
 
-def non_json(in):
+def non_json(data):
     """Handler for json_dumps when used for debugging."""
-    return f"Non-JSON: ({in})"
+    return f"Non-JSON: ({data})"
 
 
 def log_json(data):