Add Steam closet auto cycle link to SmartThings (#145111)

This commit is contained in:
Joost Lekkerkerker 2025-05-17 20:39:17 +02:00 committed by GitHub
parent 67b3428b07
commit 5619042fe7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 64 additions and 1 deletions

View File

@ -108,6 +108,12 @@
},
"ice_maker": {
"default": "mdi:delete-variant"
},
"auto_cycle_link": {
"default": "mdi:link-off",
"state": {
"on": "mdi:link"
}
}
}
}

View File

@ -556,6 +556,9 @@
"sabbath_mode": {
"name": "Sabbath mode"
},
"auto_cycle_link": {
"name": "Auto cycle link"
},
"keep_fresh_mode": {
"name": "Keep fresh mode"
}

View File

@ -71,7 +71,14 @@ CAPABILITY_TO_COMMAND_SWITCHES: dict[
status_attribute=Attribute.DRYER_WRINKLE_PREVENT,
command=Command.SET_DRYER_WRINKLE_PREVENT,
entity_category=EntityCategory.CONFIG,
)
),
Capability.SAMSUNG_CE_STEAM_CLOSET_AUTO_CYCLE_LINK: SmartThingsCommandSwitchEntityDescription(
key=Capability.SAMSUNG_CE_STEAM_CLOSET_AUTO_CYCLE_LINK,
translation_key="auto_cycle_link",
status_attribute=Attribute.STEAM_CLOSET_AUTO_CYCLE_LINK,
command=Command.SET_STEAM_CLOSET_AUTO_CYCLE_LINK,
entity_category=EntityCategory.CONFIG,
),
}
CAPABILITY_TO_SWITCHES: dict[Capability | str, SmartThingsSwitchEntityDescription] = {
Capability.SAMSUNG_CE_WASHER_BUBBLE_SOAK: SmartThingsSwitchEntityDescription(

View File

@ -234,6 +234,53 @@
'state': 'off',
})
# ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_auto_cycle_link-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_auto_cycle_link',
'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': 'Auto cycle link',
'platform': 'smartthings',
'previous_unique_id': None,
'supported_features': 0,
'translation_key': 'auto_cycle_link',
'unique_id': 'b93211bf-9d96-bd21-3b2f-964fcc87f5cc_main_samsungce.steamClosetAutoCycleLink_steamClosetAutoCycleLink_steamClosetAutoCycleLink',
'unit_of_measurement': None,
})
# ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_auto_cycle_link-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AirDresser Auto cycle link',
}),
'context': <ANY>,
'entity_id': 'switch.airdresser_auto_cycle_link',
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': 'on',
})
# ---
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_keep_fresh_mode-entry]
EntityRegistryEntrySnapshot({
'aliases': set({