linter fixes, version bump

This commit is contained in:
2023-06-19 17:16:00 +02:00
parent 8927949c4b
commit be09b3475d
48 changed files with 179 additions and 215 deletions

View File

@ -86,9 +86,8 @@ def pack_cmd_ctrl_to_nml(
def get_object_from_op_code(op_code: str):
try:
return bytes.fromhex(op_code)
except:
except ValueError:
pass
if op_code in OpCode.THERMAL_CONTROLLER:
return obj_ids.THERMAL_CONTROLLER_ID
if op_code in OpCode.CORE_CONTROLLER: