Skip to content

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ee02217 committed Feb 6, 2021
1 parent 10047ba commit db5b337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/miheater/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
SERVICE_SET_ROOM_TEMP = 'miheater_set_room_temperature'
PRECISION = 1
MIN_TEMP = 18
MIN_TEMP_ZB1 = 16
MAX_TEMP = 28
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_HOST): cv.string,
Expand Down Expand Up @@ -213,10 +214,9 @@ def is_on(self):
def min_temp(self):
"""Return the minimum temperature."""
if self._model == "zhimi.heater.zb1" or self._model == "zhimi.heater.za2" :
MIN_TEMP = 16;
return MIN_TEMP_ZB1
else:
MIN_TEMP = 18;
return MIN_TEMP
return MIN_TEMP

@property
def max_temp(self):
Expand Down

0 comments on commit db5b337

Please sign in to comment.