mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Add wrinkle prevent binary sensor active to SmartThings (#141289)
* Add wrinkle prevent binary sensor active to SmartThings * Fix
This commit is contained in:
parent
06382f33e0
commit
69a375776a
@ -68,6 +68,14 @@ CAPABILITY_TO_SENSORS: dict[
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
Capability.CUSTOM_DRYER_WRINKLE_PREVENT: {
|
||||||
|
Attribute.OPERATING_STATE: SmartThingsBinarySensorEntityDescription(
|
||||||
|
key=Attribute.OPERATING_STATE,
|
||||||
|
translation_key="dryer_wrinkle_prevent_active",
|
||||||
|
is_on_key="running",
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
)
|
||||||
|
},
|
||||||
Capability.FILTER_STATUS: {
|
Capability.FILTER_STATUS: {
|
||||||
Attribute.FILTER_STATUS: SmartThingsBinarySensorEntityDescription(
|
Attribute.FILTER_STATUS: SmartThingsBinarySensorEntityDescription(
|
||||||
key=Attribute.FILTER_STATUS,
|
key=Attribute.FILTER_STATUS,
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
{
|
{
|
||||||
"entity": {
|
"entity": {
|
||||||
"binary_sensor": {
|
"binary_sensor": {
|
||||||
|
"dryer_wrinkle_prevent_active": {
|
||||||
|
"default": "mdi:tumble-dryer",
|
||||||
|
"state": {
|
||||||
|
"on": "mdi:tumble-dryer-alert"
|
||||||
|
}
|
||||||
|
},
|
||||||
"remote_control": {
|
"remote_control": {
|
||||||
"default": "mdi:remote-off",
|
"default": "mdi:remote-off",
|
||||||
"state": {
|
"state": {
|
||||||
|
@ -36,6 +36,9 @@
|
|||||||
"door": {
|
"door": {
|
||||||
"name": "[%key:component::binary_sensor::entity_component::door::name%]"
|
"name": "[%key:component::binary_sensor::entity_component::door::name%]"
|
||||||
},
|
},
|
||||||
|
"dryer_wrinkle_prevent_active": {
|
||||||
|
"name": "Wrinkle prevent active"
|
||||||
|
},
|
||||||
"filter_status": {
|
"filter_status": {
|
||||||
"name": "Filter status"
|
"name": "Filter status"
|
||||||
},
|
},
|
||||||
|
@ -949,6 +949,53 @@
|
|||||||
'state': 'off',
|
'state': 'off',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_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.dryer_wrinkle_prevent_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': 'Wrinkle prevent active',
|
||||||
|
'platform': 'smartthings',
|
||||||
|
'previous_unique_id': None,
|
||||||
|
'supported_features': 0,
|
||||||
|
'translation_key': 'dryer_wrinkle_prevent_active',
|
||||||
|
'unique_id': '02f7256e-8353-5bdd-547f-bd5b1647e01b.operatingState',
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
})
|
||||||
|
# ---
|
||||||
|
# name: test_all_entities[da_wm_wd_000001][binary_sensor.dryer_wrinkle_prevent_active-state]
|
||||||
|
StateSnapshot({
|
||||||
|
'attributes': ReadOnlyDict({
|
||||||
|
'friendly_name': 'Dryer Wrinkle prevent active',
|
||||||
|
}),
|
||||||
|
'context': <ANY>,
|
||||||
|
'entity_id': 'binary_sensor.dryer_wrinkle_prevent_active',
|
||||||
|
'last_changed': <ANY>,
|
||||||
|
'last_reported': <ANY>,
|
||||||
|
'last_updated': <ANY>,
|
||||||
|
'state': 'off',
|
||||||
|
})
|
||||||
|
# ---
|
||||||
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_child_lock-entry]
|
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_child_lock-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
@ -1091,6 +1138,53 @@
|
|||||||
'state': 'off',
|
'state': 'off',
|
||||||
})
|
})
|
||||||
# ---
|
# ---
|
||||||
|
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_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.seca_roupa_wrinkle_prevent_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': 'Wrinkle prevent active',
|
||||||
|
'platform': 'smartthings',
|
||||||
|
'previous_unique_id': None,
|
||||||
|
'supported_features': 0,
|
||||||
|
'translation_key': 'dryer_wrinkle_prevent_active',
|
||||||
|
'unique_id': '3a6c4e05-811d-5041-e956-3d04c424cbcd.operatingState',
|
||||||
|
'unit_of_measurement': None,
|
||||||
|
})
|
||||||
|
# ---
|
||||||
|
# name: test_all_entities[da_wm_wd_000001_1][binary_sensor.seca_roupa_wrinkle_prevent_active-state]
|
||||||
|
StateSnapshot({
|
||||||
|
'attributes': ReadOnlyDict({
|
||||||
|
'friendly_name': 'Seca-Roupa Wrinkle prevent active',
|
||||||
|
}),
|
||||||
|
'context': <ANY>,
|
||||||
|
'entity_id': 'binary_sensor.seca_roupa_wrinkle_prevent_active',
|
||||||
|
'last_changed': <ANY>,
|
||||||
|
'last_reported': <ANY>,
|
||||||
|
'last_updated': <ANY>,
|
||||||
|
'state': 'off',
|
||||||
|
})
|
||||||
|
# ---
|
||||||
# name: test_all_entities[da_wm_wm_000001][binary_sensor.washer_child_lock-entry]
|
# name: test_all_entities[da_wm_wm_000001][binary_sensor.washer_child_lock-entry]
|
||||||
EntityRegistryEntrySnapshot({
|
EntityRegistryEntrySnapshot({
|
||||||
'aliases': set({
|
'aliases': set({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user