Skip to content

Commit

Permalink
Sensibo, add HVAC_MODE_OFF (#25016)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielhiversen authored and andrewsayre committed Jul 8, 2019
1 parent ab832cd commit 662e0dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/sensibo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def target_temperature_step(self):
@property
def hvac_mode(self):
"""Return current operation ie. heat, cool, idle."""
if not self._ac_states['on']:
return HVAC_MODE_OFF
return SENSIBO_TO_HA.get(self._ac_states['mode'])

@property
Expand Down

0 comments on commit 662e0dd

Please sign in to comment.