Skip to content

Commit

Permalink
Restore ability to overwrite homekit max temp bound (home-assistant#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Apr 23, 2020
1 parent cc28150 commit 7ff196d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions homeassistant/components/homekit/type_thermostats.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ def __init__(self, *args):
self._unit = self.hass.config.units.temperature_unit
min_temp, max_temp = self.get_temperature_range()

# Homekit only supports 10-38
# Homekit only supports 10-38, overwriting
# the max to appears to work, but less than 10 causes
# a crash on the home app
hc_min_temp = max(min_temp, HC_MIN_TEMP)
hc_max_temp = min(max_temp, HC_MAX_TEMP)
hc_max_temp = max_temp

min_humidity = self.hass.states.get(self.entity_id).attributes.get(
ATTR_MIN_HUMIDITY, DEFAULT_MIN_HUMIDITY
Expand Down

0 comments on commit 7ff196d

Please sign in to comment.