mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add translatable states to robot cleaner cleaning mode in SmartThings (#139362)
* Add translatable states to robot cleaner cleaning mode in SmartThings * Update homeassistant/components/smartthings/strings.json * Update homeassistant/components/smartthings/strings.json --------- Co-authored-by: Josef Zweck <josef@zweck.dev>
This commit is contained in:
parent
cadee73da8
commit
5e5fd6a2f2
@ -620,6 +620,8 @@ CAPABILITY_TO_SENSORS: dict[
|
|||||||
SmartThingsSensorEntityDescription(
|
SmartThingsSensorEntityDescription(
|
||||||
key=Attribute.ROBOT_CLEANER_CLEANING_MODE,
|
key=Attribute.ROBOT_CLEANER_CLEANING_MODE,
|
||||||
translation_key="robot_cleaner_cleaning_mode",
|
translation_key="robot_cleaner_cleaning_mode",
|
||||||
|
options=["auto", "part", "repeat", "manual", "stop", "map"],
|
||||||
|
device_class=SensorDeviceClass.ENUM,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
@ -252,7 +252,15 @@
|
|||||||
"name": "[%key:component::smartthings::entity::sensor::oven_setpoint::name%]"
|
"name": "[%key:component::smartthings::entity::sensor::oven_setpoint::name%]"
|
||||||
},
|
},
|
||||||
"robot_cleaner_cleaning_mode": {
|
"robot_cleaner_cleaning_mode": {
|
||||||
"name": "Cleaning mode"
|
"name": "Cleaning mode",
|
||||||
|
"state": {
|
||||||
|
"auto": "Auto",
|
||||||
|
"part": "Partial",
|
||||||
|
"repeat": "Repeat",
|
||||||
|
"manual": "Manual",
|
||||||
|
"stop": "[%key:common::action::stop%]",
|
||||||
|
"map": "Map"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"robot_cleaner_movement": {
|
"robot_cleaner_movement": {
|
||||||
"name": "Movement",
|
"name": "Movement",
|
||||||
|
@ -2516,7 +2516,16 @@
|
|||||||
'aliases': set({
|
'aliases': set({
|
||||||
}),
|
}),
|
||||||
'area_id': None,
|
'area_id': None,
|
||||||
'capabilities': None,
|
'capabilities': dict({
|
||||||
|
'options': list([
|
||||||
|
'auto',
|
||||||
|
'part',
|
||||||
|
'repeat',
|
||||||
|
'manual',
|
||||||
|
'stop',
|
||||||
|
'map',
|
||||||
|
]),
|
||||||
|
}),
|
||||||
'config_entry_id': <ANY>,
|
'config_entry_id': <ANY>,
|
||||||
'config_subentry_id': <ANY>,
|
'config_subentry_id': <ANY>,
|
||||||
'device_class': None,
|
'device_class': None,
|
||||||
@ -2534,7 +2543,7 @@
|
|||||||
'name': None,
|
'name': None,
|
||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': None,
|
'original_device_class': <SensorDeviceClass.ENUM: 'enum'>,
|
||||||
'original_icon': None,
|
'original_icon': None,
|
||||||
'original_name': 'Cleaning mode',
|
'original_name': 'Cleaning mode',
|
||||||
'platform': 'smartthings',
|
'platform': 'smartthings',
|
||||||
@ -2548,7 +2557,16 @@
|
|||||||
# name: test_all_entities[da_rvc_normal_000001][sensor.robot_vacuum_cleaning_mode-state]
|
# name: test_all_entities[da_rvc_normal_000001][sensor.robot_vacuum_cleaning_mode-state]
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
|
'device_class': 'enum',
|
||||||
'friendly_name': 'Robot vacuum Cleaning mode',
|
'friendly_name': 'Robot vacuum Cleaning mode',
|
||||||
|
'options': list([
|
||||||
|
'auto',
|
||||||
|
'part',
|
||||||
|
'repeat',
|
||||||
|
'manual',
|
||||||
|
'stop',
|
||||||
|
'map',
|
||||||
|
]),
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
'entity_id': 'sensor.robot_vacuum_cleaning_mode',
|
'entity_id': 'sensor.robot_vacuum_cleaning_mode',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user