hx71x: Avoid base classes to improve python2 compatibility

Also, add a load_cell regression test case.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2024-09-03 22:11:03 -04:00
parent 14a83103c3
commit 293858c51f
4 changed files with 43 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ def hexify(byte_array):
return "[%s]" % (", ".join([hex(b) for b in byte_array]))
class ADS1220():
class ADS1220:
def __init__(self, config):
self.printer = printer = config.get_printer()
self.name = config.get_name().split()[-1]