mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
fix: fix climate hvac_mode
This commit is contained in:
parent
b4b81dc6e0
commit
9b14d1b086
@ -700,9 +700,9 @@ class PtcBathHeater(
|
||||
def hvac_mode(self) -> Optional[HVACMode]:
|
||||
"""The current hvac mode."""
|
||||
return (
|
||||
self.get_map_key(
|
||||
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))
|
||||
if self._prop_mode else None)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user