lmatula / ha_chint_pm

homeassistant Chint power meter integration
Creative Commons Zero v1.0 Universal
15 stars 8 forks source link

AttributeError: 'ModbusIOException' object has no attribute 'registers' #22

Open Suessinger opened 4 months ago

Suessinger commented 4 months ago

HI,

I get the following error message when I try to configure the program. what could be the reason for this?

'ModbusIOException' object has no attribute 'registers'
Traceback (most recent call last):
  File "/config/custom_components/chint_pm/config_flow.py", line 388, in async_step_setup_network
    info = await validate_network_setup(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/chint_pm/config_flow.py", line 146, in validate_network_setup
    decoder = BinaryPayloadDecoder.fromRegisters(rr.registers, byteorder=Endian.BIG)
                                                 ^^^^^^^^^^^^
AttributeError: 'ModbusIOException' object has no attribute 'registers'