Skip to content

Exception with VA18B #882

Description

@bowsi

When using a VA18B multimeter the error "a bytes-like object is required, not 'int' "
occurs in function TEVA18Btemperature in source file comm.py at this line:
s201 = binascii.hexlify(r[1])
I have found that if this line (and the following eight or so similar lines) is changed to
s201 = binascii.hexlify(r[1].to_bytes(1,'big'))
then the exception goes away and the temperatures are correctly read.
I'm using PyCharm 2021.2 on Windows to debug this but first found the error when I installed Artisan on a linux machine recently.

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions