Skip to content

Commit

Permalink
Merge pull request #107 from mvn23/fix-limit-power
Browse files Browse the repository at this point in the history
Fix set_limitpower
  • Loading branch information
wimb0 authored Feb 11, 2025
2 parents 9372753 + 36e0b80 commit 28927ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/saj_modbus/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def set_limitpower(self, value: int):
"""Limit the power output of the inverter."""
if self.limiter_is_disabled():
return
response = self._write_registers(unit=1, address=0x801F, values=int(value*10))
response = self._write_registers(unit=1, address=0x801F, values=[int(value*10)])
if response.isError():
return
self.data["limitpower"] = value
Expand Down

0 comments on commit 28927ea

Please sign in to comment.