From c816bf051c2eb36c4f74a1b73185ef7b71cbf57f Mon Sep 17 00:00:00 2001 From: nao-pon Date: Sat, 17 Feb 2024 21:34:18 +0900 Subject: [PATCH] Fix syntax error in ElectricWaterHeater _026BCC() --- pychonet/ElectricWaterHeater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pychonet/ElectricWaterHeater.py b/pychonet/ElectricWaterHeater.py index daf551b..7942e62 100644 --- a/pychonet/ElectricWaterHeater.py +++ b/pychonet/ElectricWaterHeater.py @@ -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")