Skip to content

Commit

Permalink
fix: set prop
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanPhevos committed Dec 17, 2024
1 parent bff5b3b commit dbf9433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_home/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:
# set air-conditioner on
if hvac_mode != HVACMode.OFF and not self.get_prop_value(
prop=self._prop_on):
await self.async_turn_on()
await self.set_property_async(prop=self._prop_on, value=True)
# set mode
mode_value = self.get_map_value(
map_=self._hvac_mode_map, description=hvac_mode)
Expand Down

0 comments on commit dbf9433

Please sign in to comment.