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