From 7ff196d043c4a7abe90345e9a554643093f4a04e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 23 Apr 2020 15:53:31 -0500 Subject: [PATCH] Restore ability to overwrite homekit max temp bound (#34612) --- homeassistant/components/homekit/type_thermostats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homekit/type_thermostats.py b/homeassistant/components/homekit/type_thermostats.py index 8691dc51c05..0a488917381 100644 --- a/homeassistant/components/homekit/type_thermostats.py +++ b/homeassistant/components/homekit/type_thermostats.py @@ -119,9 +119,11 @@ class Thermostat(HomeAccessory): 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