Skip to content

Commit

Permalink
Fix syntax error in ElectricWaterHeater _026BCC()
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 17, 2024
1 parent 7e48bd9 commit c816bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pychonet/ElectricWaterHeater.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _026BCC(edt):
# When shifting at 10:00, 13:00, 15:00, and 17:00
# 0x0000: cleared
# unsigned short x 4 8 bytes Wh
if len(edt == 8):
if len(edt) == 8:
v1 = int.from_bytes(edt[0:2], "big")
v2 = int.from_bytes(edt[2:4], "big")
v3 = int.from_bytes(edt[4:6], "big")
Expand Down

0 comments on commit c816bf0

Please sign in to comment.