mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Treat swing and fan level as optional in Sensibo Climate. (#7560)
This commit is contained in:
parent
452c3a1b25
commit
5b3ef0f76f
@ -149,22 +149,22 @@ class SensiboClimate(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def current_fan_mode(self):
|
def current_fan_mode(self):
|
||||||
"""Return the fan setting."""
|
"""Return the fan setting."""
|
||||||
return self._ac_states['fanLevel']
|
return self._ac_states.get('fanLevel')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fan_list(self):
|
def fan_list(self):
|
||||||
"""List of available fan modes."""
|
"""List of available fan modes."""
|
||||||
return self._current_capabilities['fanLevels']
|
return self._current_capabilities.get('fanLevels')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def current_swing_mode(self):
|
def current_swing_mode(self):
|
||||||
"""Return the fan setting."""
|
"""Return the fan setting."""
|
||||||
return self._ac_states['swing']
|
return self._ac_states.get('swing')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def swing_list(self):
|
def swing_list(self):
|
||||||
"""List of available swing modes."""
|
"""List of available swing modes."""
|
||||||
return self._current_capabilities['swing']
|
return self._current_capabilities.get('swing')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user