Skip to content

Commit

Permalink
Fix setting state.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Warren committed May 17, 2023
1 parent 5f2bc7c commit bfa6376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/t_smart/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def hvac_mode(self):
return HVACMode.HEAT if self._tsmart.power else HVACMode.OFF

async def async_set_hvac_mode(self, hvac_mode):
await self._tsmart._async_control_set(
await self._tsmart.async_control_set(
hvac_mode == HVACMode.HEAT,
PRESET_MAP[self.preset_mode],
self.target_temperature,
Expand All @@ -86,7 +86,7 @@ def target_temperature(self):
return self._tsmart.setpoint

async def async_set_temperature(self, temperature, **kwargs):
await self._tsmart._async_control_set(
await self._tsmart.async_control_set(
self.hvac_mode == HVACMode.HEAT, PRESET_MAP[self.preset_mode], temperature
)
await self.coordinator.async_request_refresh()
Expand All @@ -99,7 +99,7 @@ def preset_mode(self):
return self._climate_preset(self._tsmart.mode)

async def async_set_preset_mode(self, preset_mode):
await self._tsmart._async_control_set(
await self._tsmart.async_control_set(
self.hvac_mode == HVACMode.HEAT,
PRESET_MAP[preset_mode],
self.target_temperature,
Expand Down

0 comments on commit bfa6376

Please sign in to comment.