From d6caa86ab36f9c7857e77778cec5b13ea153b365 Mon Sep 17 00:00:00 2001 From: abmantis Date: Sun, 3 Aug 2025 16:25:36 +0100 Subject: [PATCH] Add support for trigger descriptions with relative keys --- homeassistant/helpers/trigger.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/trigger.py b/homeassistant/helpers/trigger.py index de3f71c4834..d0f644e650b 100644 --- a/homeassistant/helpers/trigger.py +++ b/homeassistant/helpers/trigger.py @@ -608,10 +608,15 @@ async def async_get_all_descriptions( new_descriptions_cache = descriptions_cache.copy() for missing_trigger in missing_triggers: domain = triggers[missing_trigger] + trigger_description_key = ( + platform_and_sub_type[1] + if len(platform_and_sub_type := missing_trigger.split(".")) > 1 + else missing_trigger + ) if ( yaml_description := new_triggers_descriptions.get(domain, {}).get( # type: ignore[union-attr] - missing_trigger + trigger_description_key ) ) is None: _LOGGER.debug(