From 5b3ef0f76f368d2d33672d7d184506fdd598ee0b Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 12 May 2017 18:28:58 +0300 Subject: [PATCH] Treat swing and fan level as optional in Sensibo Climate. (#7560) --- homeassistant/components/climate/sensibo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/climate/sensibo.py b/homeassistant/components/climate/sensibo.py index afb04fa3c91..79d231a69c5 100644 --- a/homeassistant/components/climate/sensibo.py +++ b/homeassistant/components/climate/sensibo.py @@ -149,22 +149,22 @@ class SensiboClimate(ClimateDevice): @property def current_fan_mode(self): """Return the fan setting.""" - return self._ac_states['fanLevel'] + return self._ac_states.get('fanLevel') @property def fan_list(self): """List of available fan modes.""" - return self._current_capabilities['fanLevels'] + return self._current_capabilities.get('fanLevels') @property def current_swing_mode(self): """Return the fan setting.""" - return self._ac_states['swing'] + return self._ac_states.get('swing') @property def swing_list(self): """List of available swing modes.""" - return self._current_capabilities['swing'] + return self._current_capabilities.get('swing') @property def name(self):