Skip to content

Commit 69a3757

Browse files
authored
Add wrinkle prevent binary sensor active to SmartThings (#141289)
* Add wrinkle prevent binary sensor active to SmartThings * Fix
1 parent 06382f3 commit 69a3757

File tree

4 files changed

+111
-0
lines changed

4 files changed

+111
-0
lines changed

homeassistant/components/smartthings/binary_sensor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ class SmartThingsBinarySensorEntityDescription(BinarySensorEntityDescription):
6868
},
6969
)
7070
},
71+
Capability.CUSTOM_DRYER_WRINKLE_PREVENT: {
72+
Attribute.OPERATING_STATE: SmartThingsBinarySensorEntityDescription(
73+
key=Attribute.OPERATING_STATE,
74+
translation_key="dryer_wrinkle_prevent_active",
75+
is_on_key="running",
76+
entity_category=EntityCategory.DIAGNOSTIC,
77+
)
78+
},
7179
Capability.FILTER_STATUS: {
7280
Attribute.FILTER_STATUS: SmartThingsBinarySensorEntityDescription(
7381
key=Attribute.FILTER_STATUS,

homeassistant/components/smartthings/icons.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"entity": {
33
"binary_sensor": {
4+
"dryer_wrinkle_prevent_active": {
5+
"default": "mdi:tumble-dryer",
6+
"state": {
7+
"on": "mdi:tumble-dryer-alert"
8+
}
9+
},
410
"remote_control": {
511
"default": "mdi:remote-off",
612
"state": {

homeassistant/components/smartthings/strings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"door": {
3737
"name": "[%key:component::binary_sensor::entity_component::door::name%]"
3838
},
39+
"dryer_wrinkle_prevent_active": {
40+
"name": "Wrinkle prevent active"
41+
},
3942
"filter_status": {
4043
"name": "Filter status"
4144
},

tests/components/smartthings/snapshots/test_binary_sensor.ambr

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,53 @@
949949
'state': 'off',
950950
})
951951
# ---
952+
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_active-entry]
953+
EntityRegistryEntrySnapshot({
954+
'aliases': set({
955+
}),
956+
'area_id': None,
957+
'capabilities': None,
958+
'config_entry_id': <ANY>,
959+
'config_subentry_id': <ANY>,
960+
'device_class': None,
961+
'device_id': <ANY>,
962+
'disabled_by': None,
963+
'domain': 'binary_sensor',
964+
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
965+
'entity_id': 'binary_sensor.dryer_wrinkle_prevent_active',
966+
'has_entity_name': True,
967+
'hidden_by': None,
968+
'icon': None,
969+
'id': <ANY>,
970+
'labels': set({
971+
}),
972+
'name': None,
973+
'options': dict({
974+
}),
975+
'original_device_class': None,
976+
'original_icon': None,
977+
'original_name': 'Wrinkle prevent active',
978+
'platform': 'smartthings',
979+
'previous_unique_id': None,
980+
'supported_features': 0,
981+
'translation_key': 'dryer_wrinkle_prevent_active',
982+
'unique_id': '02f7256e-8353-5bdd-547f-bd5b1647e01b.operatingState',
983+
'unit_of_measurement': None,
984+
})
985+
# ---
986+
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_active-state]
987+
StateSnapshot({
988+
'attributes': ReadOnlyDict({
989+
'friendly_name': 'Dryer Wrinkle prevent active',
990+
}),
991+
'context': <ANY>,
992+
'entity_id': 'binary_sensor.dryer_wrinkle_prevent_active',
993+
'last_changed': <ANY>,
994+
'last_reported': <ANY>,
995+
'last_updated': <ANY>,
996+
'state': 'off',
997+
})
998+
# ---
952999
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_child_lock-entry]
9531000
EntityRegistryEntrySnapshot({
9541001
'aliases': set({
@@ -1091,6 +1138,53 @@
10911138
'state': 'off',
10921139
})
10931140
# ---
1141+
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_active-entry]
1142+
EntityRegistryEntrySnapshot({
1143+
'aliases': set({
1144+
}),
1145+
'area_id': None,
1146+
'capabilities': None,
1147+
'config_entry_id': <ANY>,
1148+
'config_subentry_id': <ANY>,
1149+
'device_class': None,
1150+
'device_id': <ANY>,
1151+
'disabled_by': None,
1152+
'domain': 'binary_sensor',
1153+
'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>,
1154+
'entity_id': 'binary_sensor.seca_roupa_wrinkle_prevent_active',
1155+
'has_entity_name': True,
1156+
'hidden_by': None,
1157+
'icon': None,
1158+
'id': <ANY>,
1159+
'labels': set({
1160+
}),
1161+
'name': None,
1162+
'options': dict({
1163+
}),
1164+
'original_device_class': None,
1165+
'original_icon': None,
1166+
'original_name': 'Wrinkle prevent active',
1167+
'platform': 'smartthings',
1168+
'previous_unique_id': None,
1169+
'supported_features': 0,
1170+
'translation_key': 'dryer_wrinkle_prevent_active',
1171+
'unique_id': '3a6c4e05-811d-5041-e956-3d04c424cbcd.operatingState',
1172+
'unit_of_measurement': None,
1173+
})
1174+
# ---
1175+
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_active-state]
1176+
StateSnapshot({
1177+
'attributes': ReadOnlyDict({
1178+
'friendly_name': 'Seca-Roupa Wrinkle prevent active',
1179+
}),
1180+
'context': <ANY>,
1181+
'entity_id': 'binary_sensor.seca_roupa_wrinkle_prevent_active',
1182+
'last_changed': <ANY>,
1183+
'last_reported': <ANY>,
1184+
'last_updated': <ANY>,
1185+
'state': 'off',
1186+
})
1187+
# ---
10941188
# name: test_all_entities[da_wm_wm_000001][binary_sensor.washer_child_lock-entry]
10951189
EntityRegistryEntrySnapshot({
10961190
'aliases': set({

0 commit comments

Comments
 (0)