Skip to content

Commit

Permalink
Fix comments and indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Padanian committed Jan 26, 2024
1 parent ea7e668 commit eaecb29
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions custom_components/stiebel_eltron_isg/wpm_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down

0 comments on commit eaecb29

Please sign in to comment.