From 2c1c395c28a6fa10fcd9d56f6592ef14bab68f66 Mon Sep 17 00:00:00 2001 From: Petro31 <35082313+Petro31@users.noreply.github.com> Date: Fri, 28 Feb 2020 03:49:47 -0500 Subject: [PATCH] Set min and max temp only if it is not None (#32262) --- homeassistant/components/generic_thermostat/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 23ee049052c7..8714ddcfbe60 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -335,7 +335,7 @@ class GenericThermostat(ClimateDevice, RestoreEntity): @property def min_temp(self): """Return the minimum temperature.""" - if self._min_temp: + if self._min_temp is not None: return self._min_temp # get default temp from super class @@ -344,7 +344,7 @@ class GenericThermostat(ClimateDevice, RestoreEntity): @property def max_temp(self): """Return the maximum temperature.""" - if self._max_temp: + if self._max_temp is not None: return self._max_temp # Get default temp from super class