Skip to content

Underlying PyModbus had breaking changes as of version 3.10.0 #48

@ShaneCluning

Description

@ShaneCluning

Underlying PyModbus had breaking changes as of version 3.10.0:

Change slave to device_id and slave= to device_id=. (#2600)

For the ModbusClientMixin.read_holding_registers() function, as such when calling read_formatted you get:
TypeError: ModbusClientMixin.read_holding_registers() got an unexpected keyword argument 'slave'

Required Fix:

replace all references to 'slave' with 'device_id' in inverter.py

inverter.py

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions