Skip to content

Commit

Permalink
Make compatible with pymodbus 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
gpulido committed Dec 12, 2024
1 parent 50e6808 commit 33b4483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions airzone/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def read_holding_registers(self, machineid, address, num_registers):
try:
with self._lock:
response = self.client.read_holding_registers(
address, num_registers, slave=machineid)
address=address, count=num_registers, slave=machineid)

logging.debug('response: ' + str(response.registers))
return response.registers
Expand All @@ -125,7 +125,7 @@ def read_input_registers(self, machineid, address, num_registers): # innobus do
try:
with self._lock:
response = self.client.read_input_registers(
address, num_registers, slave=machineid)
address=address, count=num_registers, slave=machineid)
logging.debug('response: ' + str(response.registers))
return response.registers
except:
Expand All @@ -134,7 +134,7 @@ def read_input_registers(self, machineid, address, num_registers): # innobus do

def write_single_register(self, machineid, address, value):
with self._lock:
test = self.client.write_register(address, value, slave=machineid)
test = self.client.write_register(address=address, value=value, slave=machineid)
print(test)

def __str__(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = python-airzone
version = 0.16.2
version = 0.17.0
description = 'Python library for interfacing with Airzone using the modbus protocol', # Required
long_description = file: README.rst
keywords = innobus, airzone, modbus, HVAC
Expand Down

0 comments on commit 33b4483

Please sign in to comment.