Skip to content

Commit

Permalink
Set temperature correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley-Vos committed Feb 10, 2024
1 parent 69868a0 commit f262ba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/nest/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ async def async_set_preset_mode(self, preset_mode: str) -> None:
return

if preset_mode == PRESET_ECO:
await self.async_set_temperature(CLIMATE_PRESET_ECO_TEMPERATURE)
await self.async_set_temperature({ATTR_TEMPERATURE: CLIMATE_PRESET_ECO_TEMPERATURE})
return
if preset_mode == PRESET_COMFORT:
await self.async_set_temperature(CLIMATE_PRESET_COMFORT_TEMPERATURE)
await self.async_set_temperature({ATTR_TEMPERATURE: CLIMATE_PRESET_COMFORT_TEMPERATURE})
return
elif preset_mode == PRESET_HOME:
await self.async_set_temperature(CLIMATE_PRESET_HOME_TEMPERATURE)
await self.async_set_temperature({ATTR_TEMPERATURE: CLIMATE_PRESET_HOME_TEMPERATURE})
return

trait = self._device.traits[ThermostatEcoTrait.NAME]
Expand Down

0 comments on commit f262ba3

Please sign in to comment.