Skip to content

Commit

Permalink
inlcude change on numbers.py as well (Endian.BIG/LITTLE)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarunster committed Sep 12, 2023
1 parent fa88e92 commit d5ed8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solaredge_modbus/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def native_value(self) -> float:

async def async_set_native_value(self, value: float) -> None:
"""Change the selected value."""
builder = BinaryPayloadBuilder(byteorder=Endian.Big, wordorder=Endian.Little)
builder = BinaryPayloadBuilder(byteorder=Endian.BIG, wordorder=Endian.LITTLE)

if self._fmt == "u32":
builder.add_32bit_uint(int(value))
Expand Down

0 comments on commit d5ed8be

Please sign in to comment.