Fix test and default value for minimal_deactivation_delay

This commit is contained in:
Jean-Marc Collin
2025-02-12 14:38:50 +00:00
parent 2a125db73f
commit cc7b7f43b9
2 changed files with 2 additions and 2 deletions

View File

@@ -371,7 +371,7 @@ class BaseThermostat(ClimateEntity, RestoreEntity, Generic[T]):
self._tpi_coef_ext = 0
self._minimal_activation_delay = entry_infos.get(CONF_MINIMAL_ACTIVATION_DELAY)
self._minimal_deactivation_delay = entry_infos.get(CONF_MINIMAL_DEACTIVATION_DELAY)
self._minimal_deactivation_delay = entry_infos.get(CONF_MINIMAL_DEACTIVATION_DELAY, 0)
self._last_temperature_measure = self.now
self._last_ext_temperature_measure = self.now

View File

@@ -196,7 +196,7 @@ class PropAlgorithm:
if self._off_time_sec < self._minimal_deactivation_delay:
if self._off_time_sec > 0:
_LOGGER.info(
"%s - Force 100% heating cycle since the off duration (%f) is shorter than minimal_deactivation_delay (%f)",
"%s - Force 100%% heating cycle since the off duration (%f) is shorter than minimal_deactivation_delay (%f)",
self._vtherm_entity_id,
self._off_time_sec,
self._minimal_deactivation_delay,