fix: fix climate hvac_mode

This commit is contained in:
topsworld 2025-01-21 20:08:04 +08:00
parent b4b81dc6e0
commit 9b14d1b086

View File

@ -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)