From da10de2d7a862afabba6be25820da47b5d20d000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 30 Dec 2020 12:42:01 +0000 Subject: [PATCH] Rename set_temp method to set_target_temperature. --- neohubapi/neostat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neohubapi/neostat.py b/neohubapi/neostat.py index 27a0281..ed3739c 100644 --- a/neohubapi/neostat.py +++ b/neohubapi/neostat.py @@ -53,7 +53,7 @@ class NeoStat(SimpleNamespace): self.preheat_active = int(self._data_.PREHEAT_ACTIVE) self.prg_temp = self._data_.PRG_TEMP self.prg_timer = self._data_.PRG_TIMER - self.set_temp = self._data_.SET_TEMP # target temperature + self.target_temperature = self._data_.SET_TEMP # target temperature self.standby = self._data_.STANDBY _switch_delay_left = datetime.strptime(self._data_.SWITCH_DELAY_LEFT, "%H:%M") self.switch_delay_left = timedelta(hours=_switch_delay_left.hour, minutes=_switch_delay_left.minute) @@ -115,7 +115,7 @@ class NeoStat(SimpleNamespace): result = await self._hub.frost(state, [self]) return result - async def set_temp(self, temperature: int): + async def set_target_temperature(self, temperature: int): result = await self._hub.set_temp(temperature, [self]) return result