Deduplicate climate modes in SmartThings (#139930)

* Deduplicate climate modes in SmartThings

* Deduplicate climate modes in SmartThings
pull/139936/head
Joost Lekkerkerker 2025-03-06 12:20:53 +01:00 committed by GitHub
parent 095b04caf9
commit 052eed6bb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -566,5 +566,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": {