Skip to content

Commit

Permalink
Fix failing climate.turn_on issue introduced in version 1.5.0-beta6
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
LeoCal authored Mar 22, 2024
1 parent c06f80f commit df0071c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit df0071c

Please sign in to comment.