Add Steam closet sanitize to SmartThings (#145110)

This commit is contained in:
Joost Lekkerkerker 2025-05-17 21:03:24 +02:00 committed by GitHub
parent 5619042fe7
commit ebed38c1dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 59 additions and 0 deletions

View File

@ -109,6 +109,9 @@
"ice_maker": { "ice_maker": {
"default": "mdi:delete-variant" "default": "mdi:delete-variant"
}, },
"sanitize": {
"default": "mdi:lotion"
},
"auto_cycle_link": { "auto_cycle_link": {
"default": "mdi:link-off", "default": "mdi:link-off",
"state": { "state": {

View File

@ -559,6 +559,9 @@
"auto_cycle_link": { "auto_cycle_link": {
"name": "Auto cycle link" "name": "Auto cycle link"
}, },
"sanitize": {
"name": "Sanitize"
},
"keep_fresh_mode": { "keep_fresh_mode": {
"name": "Keep fresh mode" "name": "Keep fresh mode"
} }

View File

@ -99,6 +99,12 @@ CAPABILITY_TO_SWITCHES: dict[Capability | str, SmartThingsSwitchEntityDescriptio
translation_key="sabbath_mode", translation_key="sabbath_mode",
status_attribute=Attribute.STATUS, status_attribute=Attribute.STATUS,
), ),
Capability.SAMSUNG_CE_STEAM_CLOSET_SANITIZE_MODE: SmartThingsSwitchEntityDescription(
key=Capability.SAMSUNG_CE_STEAM_CLOSET_SANITIZE_MODE,
translation_key="sanitize",
status_attribute=Attribute.STATUS,
entity_category=EntityCategory.CONFIG,
),
Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE: SmartThingsSwitchEntityDescription( Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE: SmartThingsSwitchEntityDescription(
key=Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE, key=Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE,
translation_key="keep_fresh_mode", translation_key="keep_fresh_mode",

View File

@ -234,6 +234,53 @@
'state': 'off', 'state': 'off',
}) })
# --- # ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_sanitize-entry]
EntityRegistryEntrySnapshot({
'aliases': set({
}),
'area_id': None,
'capabilities': None,
'config_entry_id': <ANY>,
'config_subentry_id': <ANY>,
'device_class': None,
'device_id': <ANY>,
'disabled_by': None,
'domain': 'switch',
'entity_category': <EntityCategory.CONFIG: 'config'>,
'entity_id': 'switch.airdresser_sanitize',
'has_entity_name': True,
'hidden_by': None,
'icon': None,
'id': <ANY>,
'labels': set({
}),
'name': None,
'options': dict({
}),
'original_device_class': None,
'original_icon': None,
'original_name': 'Sanitize',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'sanitize',
'unique_id': 'b93211bf-9d96-bd21-3b2f-964fcc87f5cc_main_samsungce.steamClosetSanitizeMode_status_status',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_sanitize-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AirDresser Sanitize',
}),
'context': <ANY>,
'entity_id': 'switch.airdresser_sanitize',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_auto_cycle_link-entry] # name: test_all_entities[da_wm_sc_000001][switch.airdresser_auto_cycle_link-entry]
EntityRegistryEntrySnapshot({ EntityRegistryEntrySnapshot({
'aliases': set({ 'aliases': set({