Skip to content

Commit 83a50eb

Browse files
committed
Keep systemOn independent of zone control
1 parent 58c0f7b commit 83a50eb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

custom_components/magiqtouch/magiqtouch.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -560,15 +560,15 @@ async def set_zone_onoff(self, zone, is_on):
560560
checker = partial(
561561
self.state_checker, units="hc", zone=zone, field="zoneOn", value=on_state
562562
)
563-
if is_on:
564-
# if any zone is on, system needs to be on
565-
self.current_state.systemOn = True
566-
else:
567-
# if all zones are off, turn off system
568-
all_dev = chain(self.current_state.cooler, self.current_state.heater)
569-
if not [d for d in all_dev if d.zoneOn]:
570-
_LOGGER.info("All zones off, turning system off")
571-
self.current_state.systemOn = False
563+
# if is_on:
564+
# # if any zone is on, system needs to be on
565+
# self.current_state.systemOn = True
566+
# else:
567+
# # if all zones are off, turn off system
568+
# all_dev = chain(self.current_state.cooler, self.current_state.heater)
569+
# if not [d for d in all_dev if d.zoneOn]:
570+
# _LOGGER.info("All zones off, turning system off")
571+
# self.current_state.systemOn = False
572572

573573
_LOGGER.info(f"set_zone_onoff {zone}={is_on} = {self.current_state}")
574574
await self.send_current_state(checker)

0 commit comments

Comments
 (0)