Fix typo in generic thermostat (#4348)
It looks like a copy / paste error was made when doing the min/max code. This fixes that.
This commit is contained in:
1 parent
17cfcc981d
commit
1663cc9084
1 file changed
+1
-1
@@ -145,7 +145,7 @@ class GenericThermostat(ClimateDevice):
|
|||||||
def max_temp(self):
|
def max_temp(self):
|
||||||
"""Return the maximum temperature."""
|
"""Return the maximum temperature."""
|
||||||
# pylint: disable=no-member
|
# pylint: disable=no-member
|
||||||
if self._min_temp:
|
if self._max_temp:
|
||||||
return self._max_temp
|
return self._max_temp
|
||||||
else:
|
else:
|
||||||
# Get default temp from super class
|
# Get default temp from super class
|
||||||
|
|||||||
Reference in new issue
Block a user