From 19af9a5fc461f23549a2b4d539fd461e1d33d502 Mon Sep 17 00:00:00 2001 From: Tucker Kern Date: Sun, 3 Mar 2024 18:30:00 +0000 Subject: [PATCH] Don't use "temp" shorthand --- msmart/device/C3/command.py | 4 ++-- msmart/device/C3/test_command.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/msmart/device/C3/command.py b/msmart/device/C3/command.py index 93dad9d0..ec12a81a 100644 --- a/msmart/device/C3/command.py +++ b/msmart/device/C3/command.py @@ -220,8 +220,8 @@ def _parse(self, payload: memoryview) -> None: self.zone2_enable = bool(payload[2] & 0x08) # Ref: double_zone_enable # 0 - Air, 1 - Water - self.zone1_temp_type = int(bool(payload[2] & 0x10)) - self.zone2_temp_type = int(bool(payload[2] & 0x20)) + self.zone1_temperature_type = int(bool(payload[2] & 0x10)) + self.zone2_temperature_type = int(bool(payload[2] & 0x20)) # Ref: room_thermalen_state, room_thermalmode_state self.room_thermostat_power_state = bool(payload[2] & 0x40) diff --git a/msmart/device/C3/test_command.py b/msmart/device/C3/test_command.py index 8ccf731d..1d81485e 100644 --- a/msmart/device/C3/test_command.py +++ b/msmart/device/C3/test_command.py @@ -35,7 +35,7 @@ class TestQueryBasicResponse(_TestResponseBase): "tbh_state", "fastdhw_state", "heat_enable", "cool_enable", "dhw_enable", "zone2_enable", - "zone1_temp_type", "zone2_temp_type", + "zone1_temperature_type", "zone2_temperature_type", "room_thermostat_power_state", "room_thermostat_enable", "time_set_state", "silence_on_state", "holiday_on_state", "eco_on_state", "zone1_terminal_type", "zone2_terminal_type",