Esempio n. 1
0
    def test_cooling_active_mode_auto_off(self) -> None:
        cooling = ZoneCooling()
        cooling.operating_mode = OperatingModes.AUTO
        cooling.time_program = _time_program(mode=SettingModes.OFF)

        active_mode = cooling.active_mode
        self.assertEqual(OperatingModes.AUTO, active_mode.current)
        self.assertEqual(SettingModes.OFF, active_mode.sub)
Esempio n. 2
0
    def test_cooling_active_mode_off(self) -> None:
        cooling = ZoneCooling()
        cooling.operating_mode = OperatingModes.OFF
        cooling.time_program = _time_program()

        active_mode = cooling.active_mode
        self.assertEqual(OperatingModes.OFF, active_mode.current)
        self.assertIsNone(active_mode.sub)
Esempio n. 3
0
def _zone_cooling() -> Zone:
    timeprogram = _time_program(SettingModes.ON)
    cooling = ZoneCooling(time_program=timeprogram,
                          operating_mode=OperatingModes.AUTO,
                          target_high=23)
    return Zone(
        id='zone',  # type: ignore
        name='Zone',
        temperature=22,
        active_function=ActiveFunction.COOLING,
        rbr=False,
        cooling=cooling)