From eaecb29a15c0020a19c4ab13d52c0d70c1ec1a2d Mon Sep 17 00:00:00 2001 From: Alessandro Mandelli Date: Fri, 26 Jan 2024 23:28:48 +0100 Subject: [PATCH] Fix comments and indentation --- .../stiebel_eltron_isg/wpm_coordinator.py | 90 +++++++++---------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/custom_components/stiebel_eltron_isg/wpm_coordinator.py b/custom_components/stiebel_eltron_isg/wpm_coordinator.py index 8e7097d..a54ffc7 100644 --- a/custom_components/stiebel_eltron_isg/wpm_coordinator.py +++ b/custom_components/stiebel_eltron_isg/wpm_coordinator.py @@ -151,170 +151,170 @@ def read_modbus_system_values(self) -> dict: decoder = BinaryPayloadDecoder.fromRegisters( inverter_data.registers, byteorder=Endian.BIG ) - """501"""" + #501 result[ACTUAL_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """502"""" + #502 result[TARGET_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """503"""" + #503 result[ACTUAL_TEMPERATURE_FEK] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """504"""" + #504 result[TARGET_TEMPERATURE_FEK] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """505"""" + #505 result[ACTUAL_HUMIDITY] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """506"""" + #506 result[DEWPOINT_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """507"""" + #507 result[OUTDOOR_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """508"""" + #508 result[ACTUAL_TEMPERATURE_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """509"""" + #509 # hk1_target = get_isg_scaled_value(decoder.decode_16bit_int()) decoder.skip_bytes(2) - """510"""" + #510 result[TARGET_TEMPERATURE_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """511"""" + #511 result[ACTUAL_TEMPERATURE_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """512"""" + #512 result[TARGET_TEMPERATURE_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """513"""" + #513 #result[FLOW_TEMPERATURE] = get_isg_scaled_value( # decoder.decode_16bit_int() #) - """514"""" + #514 result[FLOW_TEMPERATURE_NHZ] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """515"""" + #515 decoder.skip_bytes(2) - """516"""" + #516 result[RETURN_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """517"""" + #517 decoder.skip_bytes(2) - """518"""" + #518 result[ACTUAL_TEMPERATURE_BUFFER] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """519"""" + #519 result[TARGET_TEMPERATURE_BUFFER] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """520"""" + #520 result[HEATER_PRESSURE] = get_isg_scaled_value( decoder.decode_16bit_int(), 100 ) - """521"""" + #521 result[VOLUME_STREAM] = get_isg_scaled_value( decoder.decode_16bit_int(), 100 ) - """522 domestic hot water"""" + #522 domestic hot water result[ACTUAL_TEMPERATURE_WATER] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """523 domestic hot water"""" + #523 domestic hot water result[TARGET_TEMPERATURE_WATER] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """524-535"""" + #524-535 decoder.skip_bytes(24) - """536"""" + #536 result[SOURCE_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """537"""" + #537 decoder.skip_bytes(2) - """538"""" + #538 result[SOURCE_PRESSURE] = get_isg_scaled_value( decoder.decode_16bit_int(), 100 ) - """539"""" + #539 result[HOT_GAS_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """540"""" + #540 result[HIGH_PRESSURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """541"""" + #541 result[LOW_PRESSURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """542"""" + #542 decoder.skip_bytes(2) - """543"""" + #543 result[FLOW_TEMPERATURE] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """544-583"""" + #544-583 decoder.skip_bytes(80) - """584"""" + #584 result[ACTUAL_ROOM_TEMPERATURE_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """585"""" + #585 result[TARGET_ROOM_TEMPERATURE_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """586"""" + #586 result[ACTUAL_HUMIDITY_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """587"""" + #587 result[DEWPOINT_TEMPERATURE_HK1] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """588"""" + #588 result[ACTUAL_ROOM_TEMPERATURE_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """589"""" + #589 result[TARGET_ROOM_TEMPERATURE_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """590"""" + #590 result[ACTUAL_HUMIDITY_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """591"""" + #591 result[DEWPOINT_TEMPERATURE_HK2] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """592"""" + #592 result[ACTUAL_ROOM_TEMPERATURE_HK3] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """593"""" + #593 result[TARGET_ROOM_TEMPERATURE_HK3] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """594"""" + #594 result[ACTUAL_HUMIDITY_HK3] = get_isg_scaled_value( decoder.decode_16bit_int() ) - """595"""" + #595 result[DEWPOINT_TEMPERATURE_HK3] = get_isg_scaled_value( decoder.decode_16bit_int() )