1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Use name instead of description_configured for triggers and conditions (#28260)

This commit is contained in:
Bram Kragten
2025-12-01 13:19:19 +01:00
committed by GitHub
parent 078915743d
commit bcb12fa062

View File

@@ -144,9 +144,7 @@ const tryDescribeTrigger = (
const type = getTriggerObjectId(trigger.trigger);
return (
hass.localize(
`component.${domain}.triggers.${type}.description_configured`
) ||
hass.localize(`component.${domain}.triggers.${type}.name`) ||
hass.localize(
`ui.panel.config.automation.editor.triggers.type.${triggerType as LegacyTrigger["trigger"]}.label`
) ||
@@ -919,9 +917,7 @@ const tryDescribeCondition = (
const type = getConditionObjectId(condition.condition);
return (
hass.localize(
`component.${domain}.conditions.${type}.description_configured`
) ||
hass.localize(`component.${domain}.conditions.${type}.name`) ||
hass.localize(
`ui.panel.config.automation.editor.conditions.type.${conditionType as LegacyCondition["condition"]}.label`
) ||