MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
68 stars 50 forks source link

TypeError: fromRegisters() got an unexpected keyword argument 'endian' #14

Closed RV1989 closed 2 years ago

RV1989 commented 2 years ago

I'm getting the following error. File "/ModbusTCP.py", line 260, in load_sma_register message = BinaryPayloadDecoder.fromRegisters(received.registers, endian=Endian.Big)

and reading the pymodbus docs there is no mention for endian= classmethodfromRegisters(registers, byteorder='<', wordorder='>')

ttvt commented 2 years ago

What's your model?