Skip to content

Commit 9ebc6cb

Browse files
authored
Add target to condition description (home-assistant#157298)
1 parent f433ca7 commit 9ebc6cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

homeassistant/helpers/condition.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,9 @@ async def async_get_all_descriptions(
12721272

12731273
description = {"fields": yaml_description.get("fields", {})}
12741274

1275+
if (target := yaml_description.get("target")) is not None:
1276+
description["target"] = target
1277+
12751278
new_descriptions_cache[missing_condition] = description
12761279

12771280
hass.data[CONDITION_DESCRIPTION_CACHE] = new_descriptions_cache

0 commit comments

Comments
 (0)