Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pail23 committed Apr 1, 2024
1 parent 08fe9da commit 90a20cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/stiebel_eltron_isg/wpm_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,10 +690,10 @@ def read_modbus_energy(self) -> dict:
decoder = BinaryPayloadDecoder.fromRegisters(
inverter_data.registers, byteorder=Endian.BIG
)
produced_heating_today = decoder.decode_16bit_uint()
produced_heating_today = self.assign_if_increased(decoder.decode_16bit_uint(), PRODUCED_HEATING_TODAY)
produced_heating_total_low = decoder.decode_16bit_uint()
produced_heating_total_high = decoder.decode_16bit_uint()
produced_water_today = decoder.decode_16bit_uint()
produced_water_today = self.assign_if_increased(decoder.decode_16bit_uint(), PRODUCED_WATER_HEATING_TODAY)
produced_water_total_low = decoder.decode_16bit_uint()
produced_water_total_high = decoder.decode_16bit_uint()
decoder.skip_bytes(8) # Skip NHZ
Expand Down

0 comments on commit 90a20cb

Please sign in to comment.