mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Localize a device action string (#19203)
This commit is contained in:
parent
52fcf64cfd
commit
1b6def4875
@ -404,7 +404,9 @@ const tryDescribeAction = <T extends ActionType>(
|
||||
if (actionType === "device_action") {
|
||||
const config = action as DeviceAction;
|
||||
if (!config.device_id) {
|
||||
return "Device action";
|
||||
return hass.localize(
|
||||
`${actionTranslationBaseKey}.device_id.description.no_device`
|
||||
);
|
||||
}
|
||||
const localized = localizeDeviceAutomationAction(
|
||||
hass,
|
||||
|
@ -2990,7 +2990,8 @@
|
||||
"flash": "Flash"
|
||||
},
|
||||
"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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user