From d72f7e5127d56cb63df0765057ba152913e690fe Mon Sep 17 00:00:00 2001 From: MrXANA91 Date: Sun, 24 Nov 2024 23:44:19 +0100 Subject: [PATCH] Climate : cast target temperature as int for request --- custom_components/switchbotremote/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/switchbotremote/climate.py b/custom_components/switchbotremote/climate.py index b4adacc..a30b5e5 100644 --- a/custom_components/switchbotremote/climate.py +++ b/custom_components/switchbotremote/climate.py @@ -237,7 +237,7 @@ def _update_remote(self): if (self._hvac_mode != HVACMode.OFF and self._override_off_command): self.sb.command( "setAll", - f"{self.target_temperature},{HVAC_REMOTE_MODES[self.hvac_mode]},{FAN_REMOTE_MODES[self.fan_mode]},{self.power_state}", + f"{int(self.target_temperature)},{HVAC_REMOTE_MODES[self.hvac_mode]},{FAN_REMOTE_MODES[self.fan_mode]},{self.power_state}", ) @callback