Skip to content

Commit

Permalink
Climate : cast target temperature as int for request
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXANA91 committed Nov 24, 2024
1 parent aa09a42 commit d72f7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/switchbotremote/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d72f7e5

Please sign in to comment.