mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Localize a device action string (#19203)
This commit is contained in:
parent
aa94ec7949
commit
2add88ccc2
@ -404,7 +404,9 @@ const tryDescribeAction = <T extends ActionType>(
|
|||||||
if (actionType === "device_action") {
|
if (actionType === "device_action") {
|
||||||
const config = action as DeviceAction;
|
const config = action as DeviceAction;
|
||||||
if (!config.device_id) {
|
if (!config.device_id) {
|
||||||
return "Device action";
|
return hass.localize(
|
||||||
|
`${actionTranslationBaseKey}.device_id.description.no_device`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
const localized = localizeDeviceAutomationAction(
|
const localized = localizeDeviceAutomationAction(
|
||||||
hass,
|
hass,
|
||||||
|
@ -2990,7 +2990,8 @@
|
|||||||
"flash": "Flash"
|
"flash": "Flash"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"picker": "Do something on a device. Great way to start."
|
"picker": "Do something on a device. Great way to start.",
|
||||||
|
"no_device": "Device action"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"activate_scene": {
|
"activate_scene": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user