Skip to content

Commit

Permalink
Changed multi_mppt_id read to uint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdelprete committed Jul 30, 2024
1 parent 0866e05 commit 405e38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/abb_powerone_pvi_sunspec/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,10 @@ def read_sunspec_modbus_model_160(self):
)

# register 122
multi_mppt_id = decoder.decode_16bit_int()
_LOGGER.debug("(read_rt_160) Decode Model #")
multi_mppt_id = decoder.decode_16bit_uint()

_LOGGER.debug("(read_rt_160) Check Model #")
if multi_mppt_id != 160:
_LOGGER.debug(
"(read_rt_160) Model not 160 - multi_mppt_id: %s",
Expand Down

0 comments on commit 405e38e

Please sign in to comment.