mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Only determine SmartThings swing modes if we support it (#139571)
Only determine swing modes if we support it
This commit is contained in:
parent
3edc7913de
commit
df95902004
@ -351,6 +351,7 @@ class SmartThingsAirConditioner(SmartThingsEntity, ClimateEntity):
|
|||||||
)
|
)
|
||||||
self._attr_hvac_modes = self._determine_hvac_modes()
|
self._attr_hvac_modes = self._determine_hvac_modes()
|
||||||
self._attr_preset_modes = self._determine_preset_modes()
|
self._attr_preset_modes = self._determine_preset_modes()
|
||||||
|
if self.supports_capability(Capability.FAN_OSCILLATION_MODE):
|
||||||
self._attr_swing_modes = self._determine_swing_modes()
|
self._attr_swing_modes = self._determine_swing_modes()
|
||||||
self._attr_supported_features = self._determine_supported_features()
|
self._attr_supported_features = self._determine_supported_features()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user