Add #602 - implement a max_on_percent setting
This commit is contained in:
@@ -921,7 +921,10 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]):
|
||||
|
||||
# Stop here
|
||||
return False
|
||||
elif action == AUTO_START_STOP_ACTION_ON:
|
||||
elif (
|
||||
action == AUTO_START_STOP_ACTION_ON
|
||||
and self.hvac_off_reason == HVAC_OFF_REASON_AUTO_START_STOP
|
||||
):
|
||||
_LOGGER.info(
|
||||
"%s - Turning ON the Vtherm due to auto-start-stop conditions", self
|
||||
)
|
||||
|
||||
@@ -1401,7 +1401,7 @@ async def test_auto_start_stop_fast_heat_window_mixed(
|
||||
assert vtherm.hvac_off_reason == HVAC_OFF_REASON_WINDOW_DETECTION
|
||||
assert vtherm._saved_hvac_mode == HVACMode.HEAT
|
||||
|
||||
assert mock_send_event.call_count == 2
|
||||
assert mock_send_event.call_count == 1
|
||||
|
||||
assert vtherm.window_state == STATE_ON
|
||||
|
||||
|
||||
@@ -972,7 +972,7 @@ async def test_manual_hvac_off_should_take_the_lead_over_window(
|
||||
assert vtherm.hvac_off_reason == HVAC_OFF_REASON_WINDOW_DETECTION
|
||||
assert vtherm._saved_hvac_mode == HVACMode.HEAT
|
||||
|
||||
assert mock_send_event.call_count == 2
|
||||
assert mock_send_event.call_count == 1
|
||||
|
||||
assert vtherm.window_state == STATE_ON
|
||||
|
||||
|
||||
Reference in New Issue
Block a user