mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Fix automation action row describing template targets (#25002)
This commit is contained in:
parent
634db1944f
commit
c2ce02652b
@ -94,7 +94,14 @@ const tryDescribeAction = <T extends ActionType>(
|
||||
|
||||
const targets: string[] = [];
|
||||
const targetOrData = config.target || config.data;
|
||||
if (targetOrData) {
|
||||
if (typeof targetOrData === "string" && isTemplate(targetOrData)) {
|
||||
targets.push(
|
||||
hass.localize(
|
||||
`${actionTranslationBaseKey}.service.description.target_template`,
|
||||
{ name: "target" }
|
||||
)
|
||||
);
|
||||
} else if (targetOrData) {
|
||||
for (const [key, name] of Object.entries({
|
||||
area_id: "areas",
|
||||
device_id: "devices",
|
||||
|
Loading…
x
Reference in New Issue
Block a user