Deduplicate climate modes in SmartThings (#139930)

* Deduplicate climate modes in SmartThings

* Deduplicate climate modes in SmartThings
This commit is contained in:
Joost Lekkerkerker 2025-03-06 12:20:53 +01:00 committed by Franck Nijhof
parent e909417a3f
commit 1304194f09
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 2 additions and 1 deletions

View File

@ -563,5 +563,6 @@ class SmartThingsAirConditioner(SmartThingsEntity, ClimateEntity):
Capability.AIR_CONDITIONER_MODE, Attribute.SUPPORTED_AC_MODES
)
if (state := AC_MODE_TO_STATE.get(mode)) is not None
if state not in modes
)
return modes

View File

@ -32,7 +32,7 @@
"timestamp": "2025-02-09T14:35:56.800Z"
},
"supportedAcModes": {
"value": ["auto", "cool", "dry", "wind", "heat"],
"value": ["auto", "cool", "dry", "wind", "heat", "dryClean"],
"timestamp": "2025-02-09T15:42:13.444Z"
},
"airConditionerMode": {