From 6ff9ff1ee5ff69a649fed0ba8403efb38c707fab Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Mon, 7 Oct 2024 04:52:33 +0000 Subject: [PATCH] Fix variables in error log --- .../versatile_thermostat/thermostat_climate.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/custom_components/versatile_thermostat/thermostat_climate.py b/custom_components/versatile_thermostat/thermostat_climate.py index bc8abb6..9737261 100644 --- a/custom_components/versatile_thermostat/thermostat_climate.py +++ b/custom_components/versatile_thermostat/thermostat_climate.py @@ -142,12 +142,17 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]): """Sends the regulated temperature to all underlying""" if self.hvac_mode == HVACMode.OFF: - _LOGGER.debug("%s - don't send regulated temperature cause VTherm is off ") + _LOGGER.debug( + "%s - don't send regulated temperature cause VTherm is off ", self + ) return if self.current_temperature is None or self.target_temperature is None: _LOGGER.warning( - "%s - don't send regulated temperature cause VTherm current_temp (%s) or target_temp (%s) is None. This should be a temporary warning message." + "%s - don't send regulated temperature cause VTherm current_temp (%s) or target_temp (%s) is None. This should be a temporary warning message.", + self, + self.current_temperature, + self.target_temperature, ) return