mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Set options for dishwasher machine state sensor in SmartThings (#139347)
* Set options for dishwasher machine state sensor in SmartThings * Fix
This commit is contained in:
parent
9262dec444
commit
37c8764426
@ -195,6 +195,8 @@ CAPABILITY_TO_SENSORS: dict[
|
||||
SmartThingsSensorEntityDescription(
|
||||
key=Attribute.MACHINE_STATE,
|
||||
translation_key="dishwasher_machine_state",
|
||||
options=["pause", "run", "stop"],
|
||||
device_class=SensorDeviceClass.ENUM,
|
||||
)
|
||||
],
|
||||
Attribute.DISHWASHER_JOB_STATE: [
|
||||
|
@ -69,7 +69,12 @@
|
||||
}
|
||||
},
|
||||
"dishwasher_machine_state": {
|
||||
"name": "Machine state"
|
||||
"name": "Machine state",
|
||||
"state": {
|
||||
"pause": "[%key:common::state::paused%]",
|
||||
"run": "Running",
|
||||
"stop": "Stopped"
|
||||
}
|
||||
},
|
||||
"dishwasher_job_state": {
|
||||
"name": "Job state",
|
||||
|
@ -2812,7 +2812,13 @@
|
||||
'aliases': set({
|
||||
}),
|
||||
'area_id': None,
|
||||
'capabilities': None,
|
||||
'capabilities': dict({
|
||||
'options': list([
|
||||
'pause',
|
||||
'run',
|
||||
'stop',
|
||||
]),
|
||||
}),
|
||||
'config_entry_id': <ANY>,
|
||||
'config_subentry_id': <ANY>,
|
||||
'device_class': None,
|
||||
@ -2830,7 +2836,7 @@
|
||||
'name': None,
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': None,
|
||||
'original_device_class': <SensorDeviceClass.ENUM: 'enum'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Machine state',
|
||||
'platform': 'smartthings',
|
||||
@ -2844,7 +2850,13 @@
|
||||
# name: test_all_entities[da_wm_dw_000001][sensor.dishwasher_machine_state-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'enum',
|
||||
'friendly_name': 'Dishwasher Machine state',
|
||||
'options': list([
|
||||
'pause',
|
||||
'run',
|
||||
'stop',
|
||||
]),
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'sensor.dishwasher_machine_state',
|
||||
|
Loading…
x
Reference in New Issue
Block a user