mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 14:08:21 +00:00
Add target to condition description (#157298)
This commit is contained in:
@@ -1272,6 +1272,9 @@ async def async_get_all_descriptions(
|
||||
|
||||
description = {"fields": yaml_description.get("fields", {})}
|
||||
|
||||
if (target := yaml_description.get("target")) is not None:
|
||||
description["target"] = target
|
||||
|
||||
new_descriptions_cache[missing_condition] = description
|
||||
|
||||
hass.data[CONDITION_DESCRIPTION_CACHE] = new_descriptions_cache
|
||||
|
||||
Reference in New Issue
Block a user