mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add Steam closet keep fresh mode to SmartThings (#145107)
This commit is contained in:
parent
2302a3bb33
commit
67b3428b07
@ -80,6 +80,14 @@ CAPABILITY_TO_SENSORS: dict[
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
)
|
||||
},
|
||||
Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE: {
|
||||
Attribute.OPERATING_STATE: SmartThingsBinarySensorEntityDescription(
|
||||
key=Attribute.OPERATING_STATE,
|
||||
translation_key="keep_fresh_mode_active",
|
||||
is_on_key="running",
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
)
|
||||
},
|
||||
Capability.FILTER_STATUS: {
|
||||
Attribute.FILTER_STATUS: SmartThingsBinarySensorEntityDescription(
|
||||
key=Attribute.FILTER_STATUS,
|
||||
|
@ -18,6 +18,9 @@
|
||||
"state": {
|
||||
"on": "mdi:lock"
|
||||
}
|
||||
},
|
||||
"keep_fresh_mode": {
|
||||
"default": "mdi:creation"
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
@ -100,6 +103,9 @@
|
||||
"off": "mdi:tumble-dryer-off"
|
||||
}
|
||||
},
|
||||
"keep_fresh_mode": {
|
||||
"default": "mdi:creation"
|
||||
},
|
||||
"ice_maker": {
|
||||
"default": "mdi:delete-variant"
|
||||
}
|
||||
|
@ -39,6 +39,9 @@
|
||||
"dryer_wrinkle_prevent_active": {
|
||||
"name": "Wrinkle prevent active"
|
||||
},
|
||||
"keep_fresh_mode_active": {
|
||||
"name": "Keep fresh mode active"
|
||||
},
|
||||
"filter_status": {
|
||||
"name": "Filter status"
|
||||
},
|
||||
@ -552,6 +555,9 @@
|
||||
},
|
||||
"sabbath_mode": {
|
||||
"name": "Sabbath mode"
|
||||
},
|
||||
"keep_fresh_mode": {
|
||||
"name": "Keep fresh mode"
|
||||
}
|
||||
},
|
||||
"water_heater": {
|
||||
|
@ -92,6 +92,12 @@ CAPABILITY_TO_SWITCHES: dict[Capability | str, SmartThingsSwitchEntityDescriptio
|
||||
translation_key="sabbath_mode",
|
||||
status_attribute=Attribute.STATUS,
|
||||
),
|
||||
Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE: SmartThingsSwitchEntityDescription(
|
||||
key=Capability.SAMSUNG_CE_STEAM_CLOSET_KEEP_FRESH_MODE,
|
||||
translation_key="keep_fresh_mode",
|
||||
status_attribute=Attribute.STATUS,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
|
@ -1190,6 +1190,53 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_sc_000001][binary_sensor.airdresser_keep_fresh_mode_active-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': 'binary_sensor',
|
||||
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
|
||||
'entity_id': 'binary_sensor.airdresser_keep_fresh_mode_active',
|
||||
'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': 'Keep fresh mode active',
|
||||
'platform': 'smartthings',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'keep_fresh_mode_active',
|
||||
'unique_id': 'b93211bf-9d96-bd21-3b2f-964fcc87f5cc_main_samsungce.steamClosetKeepFreshMode_operatingState_operatingState',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_sc_000001][binary_sensor.airdresser_keep_fresh_mode_active-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'AirDresser Keep fresh mode active',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'binary_sensor.airdresser_keep_fresh_mode_active',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_sc_000001][binary_sensor.airdresser_power-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
@ -234,6 +234,53 @@
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_keep_fresh_mode-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_keep_fresh_mode',
|
||||
'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': 'Keep fresh mode',
|
||||
'platform': 'smartthings',
|
||||
'previous_unique_id': None,
|
||||
'supported_features': 0,
|
||||
'translation_key': 'keep_fresh_mode',
|
||||
'unique_id': 'b93211bf-9d96-bd21-3b2f-964fcc87f5cc_main_samsungce.steamClosetKeepFreshMode_status_status',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_sc_000001][switch.airdresser_keep_fresh_mode-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'AirDresser Keep fresh mode',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'switch.airdresser_keep_fresh_mode',
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_all_entities[da_wm_wd_000001][switch.dryer_wrinkle_prevent-entry]
|
||||
EntityRegistryEntrySnapshot({
|
||||
'aliases': set({
|
||||
|
Loading…
x
Reference in New Issue
Block a user