mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 18:57:57 +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
f17274d417
commit
a718b6ebff
@ -345,6 +345,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