FIX #90 WarCOzes remark
This commit is contained in:
@@ -1215,6 +1215,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
|
|||||||
await under.set_hvac_mode(hvac_mode) or need_control_heating
|
await under.set_hvac_mode(hvac_mode) or need_control_heating
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# If AC is on maybe we have to change the temperature in force mode
|
||||||
|
if self._ac_mode:
|
||||||
|
await self._async_set_preset_mode_internal(self._attr_preset_mode, True)
|
||||||
|
|
||||||
if need_control_heating and sub_need_control_heating:
|
if need_control_heating and sub_need_control_heating:
|
||||||
await self._async_control_heating(force=True)
|
await self._async_control_heating(force=True)
|
||||||
|
|
||||||
|
|||||||
@@ -550,7 +550,7 @@ class VersatileThermostatBaseConfigFlow(FlowHandler):
|
|||||||
"""Handle the presence management flow steps"""
|
"""Handle the presence management flow steps"""
|
||||||
_LOGGER.debug("Into ConfigFlow.async_step_presence user_input=%s", user_input)
|
_LOGGER.debug("Into ConfigFlow.async_step_presence user_input=%s", user_input)
|
||||||
|
|
||||||
if self._infos[CONF_AC_MODE]:
|
if self._infos.get(CONF_AC_MODE) == True:
|
||||||
schema = self.STEP_PRESENCE_WITH_AC_DATA_SCHEMA
|
schema = self.STEP_PRESENCE_WITH_AC_DATA_SCHEMA
|
||||||
else:
|
else:
|
||||||
schema = self.STEP_PRESENCE_DATA_SCHEMA
|
schema = self.STEP_PRESENCE_DATA_SCHEMA
|
||||||
@@ -689,7 +689,7 @@ class VersatileThermostatOptionsFlowHandler(
|
|||||||
elif self._infos[CONF_USE_PRESENCE_FEATURE]:
|
elif self._infos[CONF_USE_PRESENCE_FEATURE]:
|
||||||
next_step = self.async_step_presence
|
next_step = self.async_step_presence
|
||||||
|
|
||||||
if self._infos[CONF_AC_MODE]:
|
if self._infos.get(CONF_AC_MODE) == True:
|
||||||
schema = self.STEP_PRESETS_WITH_AC_DATA_SCHEMA
|
schema = self.STEP_PRESETS_WITH_AC_DATA_SCHEMA
|
||||||
else:
|
else:
|
||||||
schema = self.STEP_PRESETS_DATA_SCHEMA
|
schema = self.STEP_PRESETS_DATA_SCHEMA
|
||||||
@@ -752,7 +752,7 @@ class VersatileThermostatOptionsFlowHandler(
|
|||||||
"Into OptionsFlowHandler.async_step_presence user_input=%s", user_input
|
"Into OptionsFlowHandler.async_step_presence user_input=%s", user_input
|
||||||
)
|
)
|
||||||
|
|
||||||
if self._infos[CONF_AC_MODE]:
|
if self._infos.get(CONF_AC_MODE) == True:
|
||||||
schema = self.STEP_PRESENCE_WITH_AC_DATA_SCHEMA
|
schema = self.STEP_PRESENCE_WITH_AC_DATA_SCHEMA
|
||||||
else:
|
else:
|
||||||
schema = self.STEP_PRESENCE_DATA_SCHEMA
|
schema = self.STEP_PRESENCE_DATA_SCHEMA
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ class UnderlyingSwitch(UnderlyingEntity):
|
|||||||
if hvac_mode == HVACMode.OFF:
|
if hvac_mode == HVACMode.OFF:
|
||||||
if self.is_device_active:
|
if self.is_device_active:
|
||||||
await self.turn_off()
|
await self.turn_off()
|
||||||
await self._cancel_cycle()
|
self._cancel_cycle()
|
||||||
|
|
||||||
if self._hvac_mode != hvac_mode:
|
if self._hvac_mode != hvac_mode:
|
||||||
self._hvac_mode = hvac_mode
|
self._hvac_mode = hvac_mode
|
||||||
|
|||||||
Reference in New Issue
Block a user