Make descriptions of keymitt_ble.calibrate action UI-friendly (#139866)

* Make descriptions of `keymitt_ble.calibrate` action UI-friendly

Update the action and field descriptions to better work within the graphical UI (selector / units shown) and for translations.

* Change to "press or release" to cover the 'Invert' mode
This commit is contained in:
Norbert Rittel 2025-03-07 13:39:48 +01:00 committed by GitHub
parent 935890e4e0
commit 11348959ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@
"services": {
"calibrate": {
"name": "Calibrate",
"description": "Calibration - Set depth, press & hold duration, and operation mode. Warning - this will send a push command to the device.",
"description": "Sets the depth, press or release duration, and operation mode. Warning - this will send a push command to the device.",
"fields": {
"entity_id": {
"name": "Entity",
@ -42,15 +42,15 @@
},
"depth": {
"name": "Depth",
"description": "Depth in percent."
"description": "How far to extend the push arm."
},
"duration": {
"name": "Duration",
"description": "Duration in seconds."
"description": "How long to press or release."
},
"mode": {
"name": "[%key:common::config_flow::data::mode%]",
"description": "Normal | invert | toggle."
"description": "The operation mode of the arm."
}
}
}