Only determine SmartThings swing modes if we support it (#139571)

Only determine swing modes if we support it
This commit is contained in:
Joost Lekkerkerker 2025-03-01 13:08:28 +01:00 committed by Bram Kragten
parent f17274d417
commit a718b6ebff

View File

@ -345,6 +345,7 @@ class SmartThingsAirConditioner(SmartThingsEntity, ClimateEntity):
)
self._attr_hvac_modes = self._determine_hvac_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_supported_features = self._determine_supported_features()