From df0071c9ef3f00429d826c2b4e5faa8e90403836 Mon Sep 17 00:00:00 2001 From: LeoCal <25389602+LeoCal@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:45:50 +0100 Subject: [PATCH] Fix failing climate.turn_on issue introduced in version 1.5.0-beta6 The commit b53b564 that went into BT version 1.5.0-beta6 introduced an issue causing the climate.turn_on operation to consistently fail. The problem is due to the fact that HVACMode.HEATING is used in the call of self.async_set_hvac_mode() inside async_turn_on() function instead of HVACMode.HEATING(). --- custom_components/better_thermostat/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/better_thermostat/climate.py b/custom_components/better_thermostat/climate.py index 0e800170..7fb7573d 100644 --- a/custom_components/better_thermostat/climate.py +++ b/custom_components/better_thermostat/climate.py @@ -1267,7 +1267,7 @@ async def async_turn_off(self) -> None: await self.async_set_hvac_mode(HVACMode.OFF) async def async_turn_on(self) -> None: - await self.async_set_hvac_mode(HVACMode.HEATING) + await self.async_set_hvac_mode(HVACMode.HEAT) @property def min_temp(self):