Skip to content

Commit

Permalink
Merge pull request #86 from atxbyea/HVACMode
Browse files Browse the repository at this point in the history
HVACMode
  • Loading branch information
atxbyea authored Jan 12, 2024
2 parents 07e8cea + a1ec6c7 commit 033d297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/climate_ip/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
DOMAIN,
HVAC_MODE_OFF,
HVACMode.OFF,
ClimateEntity,
)
from homeassistant.components.climate.const import (
Expand Down Expand Up @@ -313,7 +313,7 @@ def target_temperature_low(self):
@property
def hvac_mode(self):
return (
HVAC_MODE_OFF
HVACMode.OFF
if self.rac.get_property(ATTR_HVAC_MODE)
in [STATE_UNKNOWN, STATE_UNAVAILABLE, ""]
else self.rac.get_property(ATTR_HVAC_MODE)
Expand Down

0 comments on commit 033d297

Please sign in to comment.