147 files

This commit is contained in:
Home Assistant Version Control
2026-08-27 20:54:53 +00:00
parent 52cbcb4187
commit 69f4dc3f17
149 changed files with 13415 additions and 1156 deletions
@@ -183,8 +183,11 @@ async def async_handle_completion_parts(
# #99: an explicit per-completion selection REPLACES the fixed links —
# including the empty selection ("nothing used this time"). None keeps the
# automatic consumes_parts behaviour.
links = used_parts if used_parts is not None else (task_data.get(CONF_TASK_CONSUMES_PARTS) or [])
# automatic consumes_parts behaviour — phase-aware (#139): the phase
# currently due may override which parts a completion consumes.
from .helpers.phases import effective_field
links = used_parts if used_parts is not None else (effective_field(task_data, CONF_TASK_CONSUMES_PARTS) or [])
# #111: a link may name another object's pool. Every touched entry has its
# own parts dict and its own Store, so collect them per entry and save each.
touched: dict[str, tuple[ConfigEntry, Any]] = {}