From 2270b7df8dc5152c81f1c4dea7eaa95a6aee6067 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Wed, 27 Apr 2022 21:16:50 -0700 Subject: [PATCH] Set nest climate min/max temp range (#70960) --- homeassistant/components/nest/climate_sdm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/homeassistant/components/nest/climate_sdm.py b/homeassistant/components/nest/climate_sdm.py index 26fb88482ee..89048b9f624 100644 --- a/homeassistant/components/nest/climate_sdm.py +++ b/homeassistant/components/nest/climate_sdm.py @@ -71,6 +71,8 @@ FAN_MODE_MAP = { FAN_INV_MODE_MAP = {v: k for k, v in FAN_MODE_MAP.items()} MAX_FAN_DURATION = 43200 # 15 hours is the max in the SDM API +MIN_TEMP = 10 +MAX_TEMP = 32 async def async_setup_sdm_entry( @@ -94,6 +96,9 @@ async def async_setup_sdm_entry( class ThermostatEntity(ClimateEntity): """A nest thermostat climate entity.""" + _attr_min_temp = MIN_TEMP + _attr_max_temp = MAX_TEMP + def __init__(self, device: Device) -> None: """Initialize ThermostatEntity.""" self._device = device