|
|
@@ -213,9 +213,9 @@ class TuyaLocalClimate(TuyaLocalEntity, ClimateEntity):
|
|
|
"""Return the minimum supported target temperature."""
|
|
|
# if a separate min_temperature dps is specified, the device tells us.
|
|
|
if self._mintemp_dps is not None:
|
|
|
- min = self._mintemp_dps.get_value(self._device)
|
|
|
- if min is not None:
|
|
|
- return min
|
|
|
+ m = self._mintemp_dps.get_value(self._device)
|
|
|
+ if m is not None:
|
|
|
+ return m
|
|
|
|
|
|
if self._temperature_dps is None:
|
|
|
if self._temp_low_dps is None:
|
|
|
@@ -230,9 +230,9 @@ class TuyaLocalClimate(TuyaLocalEntity, ClimateEntity):
|
|
|
"""Return the maximum supported target temperature."""
|
|
|
# if a separate max_temperature dps is specified, the device tells us.
|
|
|
if self._maxtemp_dps is not None:
|
|
|
- max = self._maxtemp_dps.get_value(self._device)
|
|
|
- if max is not None:
|
|
|
- return max
|
|
|
+ m = self._maxtemp_dps.get_value(self._device)
|
|
|
+ if m is not None:
|
|
|
+ return m
|
|
|
|
|
|
if self._temperature_dps is None:
|
|
|
if self._temp_high_dps is None:
|