From 278867c4fc2cb6ebda9cf451c9b35f1875d0e52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 3 Jan 2021 13:42:52 +0000 Subject: [PATCH] Rename set_temp to set_target_temperature. --- neohubapi/neohub.py | 2 +- neohubapi/neostat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neohubapi/neohub.py b/neohubapi/neohub.py index 2bb212b..aad2fa2 100644 --- a/neohubapi/neohub.py +++ b/neohubapi/neohub.py @@ -415,7 +415,7 @@ class NeoHub: result = await self._send(message, reply) return result - async def set_temp(self, temperature: int, devices: [NeoStat]): + async def set_target_temperature(self, temperature: int, devices: [NeoStat]): """ Sets the thermostat's temperature diff --git a/neohubapi/neostat.py b/neohubapi/neostat.py index f7b6712..4c05815 100644 --- a/neohubapi/neostat.py +++ b/neohubapi/neostat.py @@ -115,7 +115,7 @@ class NeoStat(SimpleNamespace): return result async def set_target_temperature(self, temperature: int): - result = await self._hub.set_temp(temperature, [self]) + result = await self._hub.set_target_temperature(temperature, [self]) return result async def set_diff(self, switching_differential: int):