diff --git a/custom_components/solaredge_modbus/number.py b/custom_components/solaredge_modbus/number.py index 7ed1c66..a15b141 100644 --- a/custom_components/solaredge_modbus/number.py +++ b/custom_components/solaredge_modbus/number.py @@ -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))