Fix test and default value for minimal_deactivation_delay
This commit is contained in:
@@ -371,7 +371,7 @@ class BaseThermostat(ClimateEntity, RestoreEntity, Generic[T]):
|
|||||||
self._tpi_coef_ext = 0
|
self._tpi_coef_ext = 0
|
||||||
|
|
||||||
self._minimal_activation_delay = entry_infos.get(CONF_MINIMAL_ACTIVATION_DELAY)
|
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_temperature_measure = self.now
|
||||||
self._last_ext_temperature_measure = self.now
|
self._last_ext_temperature_measure = self.now
|
||||||
|
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ class PropAlgorithm:
|
|||||||
if self._off_time_sec < self._minimal_deactivation_delay:
|
if self._off_time_sec < self._minimal_deactivation_delay:
|
||||||
if self._off_time_sec > 0:
|
if self._off_time_sec > 0:
|
||||||
_LOGGER.info(
|
_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._vtherm_entity_id,
|
||||||
self._off_time_sec,
|
self._off_time_sec,
|
||||||
self._minimal_deactivation_delay,
|
self._minimal_deactivation_delay,
|
||||||
|
|||||||
Reference in New Issue
Block a user