Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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