FIX TypeError: '>' not supported between instances of 'float' and 'NoneType' error message
This commit is contained in:
@@ -145,6 +145,12 @@ class ThermostatOverClimate(BaseThermostat[UnderlyingClimate]):
|
|||||||
_LOGGER.debug("%s - don't send regulated temperature cause VTherm is off ")
|
_LOGGER.debug("%s - don't send regulated temperature cause VTherm is off ")
|
||||||
return
|
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."
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"%s - Calling ThermostatClimate._send_regulated_temperature force=%s",
|
"%s - Calling ThermostatClimate._send_regulated_temperature force=%s",
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user