Skip to content

Commit

Permalink
fix: fix climate mode value
Browse files Browse the repository at this point in the history
  • Loading branch information
juzi214032 committed Jan 27, 2025
1 parent 1022838 commit ab3bf74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/xiaomi_home/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ def hvac_mode(self) -> Optional[HVACMode]:
"""Return the hvac mode. e.g., heat, cool mode."""
if self.get_prop_value(prop=self._prop_on) is False:
return HVACMode.OFF
return self.get_map_key(
return self.get_map_value(
map_=self._hvac_mode_map,
value=self.get_prop_value(prop=self._prop_mode))
key=self.get_prop_value(prop=self._prop_mode))

@property
def fan_mode(self) -> Optional[str]:
Expand Down

0 comments on commit ab3bf74

Please sign in to comment.