From 662e0dde807dc9e97a910f1e901efa93920dcb01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Mon, 8 Jul 2019 19:17:59 +0200 Subject: [PATCH] Sensibo, add HVAC_MODE_OFF (#25016) --- homeassistant/components/sensibo/climate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/sensibo/climate.py b/homeassistant/components/sensibo/climate.py index 82fa1a9887aab3..17a1d149b9fc4d 100644 --- a/homeassistant/components/sensibo/climate.py +++ b/homeassistant/components/sensibo/climate.py @@ -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