Skip to content

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

@Suessinger

Description

@Suessinger

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions