From 12b67ba3e001dfa8d24987e763a0c8d4511845ed Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 12 Jan 2025 11:12:14 +0000 Subject: [PATCH] issue #804 - addition --- custom_components/versatile_thermostat/thermostat_climate.py | 3 ++- .../versatile_thermostat/thermostat_climate_valve.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index 5473f44..f857a3a 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -833,7 +833,8 @@ async def end_climate_changed(changes: bool): and under.last_sent_temperature is not None ): _LOGGER.debug( - "Do temperature check. under.last_sent_temperature is %s, new_target_temp is %s", + "%s - Do temperature check. under.last_sent_temperature is %s, new_target_temp is %s", + self, under.last_sent_temperature, new_target_temp, ) diff --git a/custom_components/versatile_thermostat/thermostat_climate_valve.py b/custom_components/versatile_thermostat/thermostat_climate_valve.py index 57dc4d3..6e219cc 100644 --- a/custom_components/versatile_thermostat/thermostat_climate_valve.py +++ b/custom_components/versatile_thermostat/thermostat_climate_valve.py @@ -256,8 +256,11 @@ async def _send_regulated_temperature(self, force=False): ) self._last_regulation_change = self.now + self.reset_last_change_time_from_vtherm() - _LOGGER.debug("%s - last_regulation_change is now: %s", self, self._last_regulation_change) + _LOGGER.debug( + "%s - last_regulation_change is now: %s and last_change_from_vtherm is now: %s", self, self._last_regulation_change, self._last_change_time_from_vtherm + ) # pylint: disable=protected-access for under in self._underlyings_valve_regulation: await under.set_valve_open_percent()