Skip to content

Commit

Permalink
Don't use "temp" shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
mill1000 committed Mar 3, 2024
1 parent 8f66a46 commit 19af9a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions msmart/device/C3/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion msmart/device/C3/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 19af9a5

Please sign in to comment.