Deduplicate climate modes in SmartThings (#139930)
* Deduplicate climate modes in SmartThings * Deduplicate climate modes in SmartThingspull/139936/head
parent
095b04caf9
commit
052eed6bb3
|
@ -566,5 +566,6 @@ class SmartThingsAirConditioner(SmartThingsEntity, ClimateEntity):
|
||||||
Capability.AIR_CONDITIONER_MODE, Attribute.SUPPORTED_AC_MODES
|
Capability.AIR_CONDITIONER_MODE, Attribute.SUPPORTED_AC_MODES
|
||||||
)
|
)
|
||||||
if (state := AC_MODE_TO_STATE.get(mode)) is not None
|
if (state := AC_MODE_TO_STATE.get(mode)) is not None
|
||||||
|
if state not in modes
|
||||||
)
|
)
|
||||||
return modes
|
return modes
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
"timestamp": "2025-02-09T14:35:56.800Z"
|
"timestamp": "2025-02-09T14:35:56.800Z"
|
||||||
},
|
},
|
||||||
"supportedAcModes": {
|
"supportedAcModes": {
|
||||||
"value": ["auto", "cool", "dry", "wind", "heat"],
|
"value": ["auto", "cool", "dry", "wind", "heat", "dryClean"],
|
||||||
"timestamp": "2025-02-09T15:42:13.444Z"
|
"timestamp": "2025-02-09T15:42:13.444Z"
|
||||||
},
|
},
|
||||||
"airConditionerMode": {
|
"airConditionerMode": {
|
||||||
|
|
Loading…
Reference in New Issue